| Modifier and Type | Field and Description |
|---|---|
| public PyObject | |
| public PyObject | |
| public String | |
| public ReflectedArgs[] | |
| private boolean | calledStatically
Whether __call__ should act as if this is called as a static method. |
| public int |
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PyObject | __call__(PyObject
the first argument to the function. self, PyObject[] the last arguments to the function (including keyword arguments). args, String[] the keywords used for all keyword arguments. keywords)Overrides org. A variant of the __call__ method with one extra initial argument. |
| public PyObject | __call__(PyObject[]
all arguments to the function (including keyword arguments). args, String[] the keywords used for all keyword arguments. keywords)Overrides org. The basic method to override when implementing a callable object. |
| public PyObject | |
| public PyObject | |
| protected void | |
| public void | |
| private static void | |
| public PyReflectedFunction | |
| private PyReflectedFunction | |
| public boolean | |
| protected boolean | |
| public static boolean | |
| private ReflectedArgs | |
| private static String | |
| private static String | |
| public void | |
| public boolean | refersDirectlyTo(PyObject ob)
Implements org. Optional operation. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public int | traverse(Visitproc visit, Object arg)
Implements org. Traverses all directly contained |
| __doc__ | back to summary |
|---|---|
| public PyObject __doc__ | |
| __module__ | back to summary |
|---|---|
| public PyObject __module__ | |
| __name__ | back to summary |
|---|---|
| public String __name__ | |
| argslist | back to summary |
|---|---|
| public ReflectedArgs[] argslist | |
| calledStatically | back to summary |
|---|---|
| private boolean calledStatically Whether __call__ should act as if this is called as a static method. | |
| nargs | back to summary |
|---|---|
| public int nargs | |
| PyReflectedFunction | back to summary |
|---|---|
| protected PyReflectedFunction(String name) | |
| PyReflectedFunction | back to summary |
|---|---|
| public PyReflectedFunction(Method... methods) | |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(PyObject self, PyObject[] args, String[] keywords) Overrides org. Doc from org. A variant of the __call__ method with one extra initial argument. This variant is used to
allow method invocations to be performed efficiently.
The default behavior is to invoke
| |
| __call__ | back to summary |
|---|---|
| public PyObject __call__(PyObject[] args, String[] keywords) Overrides org. Doc from org. The basic method to override when implementing a callable object. The first len(args)-len(keywords) members of args[] are plain arguments. The last len(keywords) arguments are the values of the keyword arguments.
| |
| _doget | back to summary |
|---|---|
| public PyObject _doget(PyObject container) Overrides org.
| |
| _doget | back to summary |
|---|---|
| public PyObject _doget(PyObject container, PyObject wherefound) Overrides org.
| |
| addArgs | back to summary |
|---|---|
| protected void addArgs(ReflectedArgs args) | |
| addMethod | back to summary |
|---|---|
| public void addMethod(Method m) | |
| addRange | back to summary |
|---|---|
| private static void addRange(StringBuilder buf, int min, int max, String sep) | |
| copy | back to summary |
|---|---|
| public PyReflectedFunction copy() | |
| copyWithCalledStatically | back to summary |
|---|---|
| private PyReflectedFunction copyWithCalledStatically(boolean calledStatically) | |
| handles | back to summary |
|---|---|
| public boolean handles(Method method) | |
| handles | back to summary |
|---|---|
| protected boolean handles(ReflectedArgs args) | |
| isPackagedProtected | back to summary |
|---|---|
| public static boolean isPackagedProtected(Class<?> c) | |
| makeArgs | back to summary |
|---|---|
| private ReflectedArgs makeArgs(Method m) | |
| niceName | back to summary |
|---|---|
| private static String niceName(Class<?> arg) | |
| ordinal | back to summary |
|---|---|
| private static String ordinal(int n) | |
| printArgs | back to summary |
|---|---|
| public void printArgs() | |
| refersDirectlyTo | back to summary |
|---|---|
| public boolean refersDirectlyTo(PyObject ob) Implements org. Doc from org. Optional operation.
Should only be implemented if it is more efficient
than calling
| |
| throwArgCountError | back to summary |
|---|---|
| protected void throwArgCountError(int nArgs, boolean self) | |
| throwBadArgError | back to summary |
|---|---|
| protected void throwBadArgError(int errArg, int nArgs, boolean self) | |
| throwError | back to summary |
|---|---|
| protected void throwError(String message) | |
| throwError | back to summary |
|---|---|
| protected void throwError(int errArg, int nArgs, boolean self, boolean keywords) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| traverse | back to summary |
|---|---|
| public int traverse(Visitproc visit, Object arg) Implements org. Doc from org. Traverses all directly contained
| |