Class ReflectedArgs

java.lang.Object
org.python.core.ReflectedArgs

public class ReflectedArgs extends Object
Map the signature of a method to the Method itself, within the context of a given simple name. This is used in support of signature polymorphism in Java methods and constructors reflected into Python.
  • Field Details

    • args

      public Class<?>[] args
      The types of arguments defining this signature (key)
    • method

      public Member method
      The specific method (or constructor).
    • declaringClass

      public Class<?> declaringClass
    • isStatic

      public boolean isStatic
    • isVarArgs

      public boolean isVarArgs
    • flags

      public int flags
    • StandardCall

      public static final int StandardCall
      See Also:
    • PyArgsCall

      public static final int PyArgsCall
      See Also:
    • PyArgsKeywordsCall

      public static final int PyArgsKeywordsCall
      See Also:
    • REPLACE

      public static final int REPLACE
      See Also:
  • Constructor Details

    • ReflectedArgs

      public ReflectedArgs(Member method, Class<?>[] args, Class<?> declaringClass, boolean isStatic)
    • ReflectedArgs

      public ReflectedArgs(Member method, Class<?>[] args, Class<?> declaringClass, boolean isStatic, boolean isVarArgs)
  • Method Details

    • matches

      public boolean matches(PyObject self, PyObject[] pyArgs, String[] keywords, org.python.core.ReflectedCallData callData)
    • precedence

      public static int precedence(Class<?> arg)
    • compare

      public static int compare(Class<?> arg1, Class<?> arg2)
    • compareTo

      public int compareTo(ReflectedArgs other)
    • toString

      public String toString()
      Overrides:
      toString in class Object