Top Fields Constructors Methods
org.python.core

public Class PyReflectedConstructor

extends PyReflectedFunction
Class Inheritance
Annotations
@Untraversable
Imports
java.lang.reflect.Constructor, .Modifier, .InvocationTargetException, java.lang.InstantiationException

Field Summary

Inherited from org.python.core.PyReflectedFunction:
__doc____module____name__argslistnargs

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod 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.python.core.PyReflectedFunction.__call__.

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.python.core.PyReflectedFunction.__call__.

The basic method to override when implementing a callable object.

public PyObject
public void
protected void
constructProxy(PyObject obj, Constructor<?> ctor, Object[] args, Class<?> proxy)

pack-priv PyObject
make(PyObject[] args, String[] keywords)

private ReflectedArgs
public String
toString()

Overrides org.python.core.PyReflectedFunction.toString.

Returns a string representation of the object.

Inherited from org.python.core.PyReflectedFunction:
_dogetaddArgsaddMethodcopyhandleshandlesisPackagedProtectedprintArgsrefersDirectlyTothrowArgCountErrorthrowBadArgErrorthrowErrorthrowErrortraverse

Constructor Detail

PyReflectedConstructorback to summary
public PyReflectedConstructor(String name)
PyReflectedConstructorback to summary
public PyReflectedConstructor(Constructor<?> c)

Method Detail

__call__back to summary
public PyObject __call__(PyObject self, PyObject[] args, String[] keywords)

Overrides org.python.core.PyReflectedFunction.__call__.

Doc from org.python.core.PyObject.__call__.

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__(args, keywords) with the appropriate arguments. The only reason to override this function would be for improved performance.

Parameters
self:PyObject

the first argument to the function.

args:PyObject[]

the last arguments to the function (including keyword arguments).

keywords:String[]

the keywords used for all keyword arguments.

Annotations
@Override
__call__back to summary
public PyObject __call__(PyObject[] args, String[] keywords)

Overrides org.python.core.PyReflectedFunction.__call__.

Doc from org.python.core.PyObject.__call__.

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.

Parameters
args:PyObject[]

all arguments to the function (including keyword arguments).

keywords:String[]

the keywords used for all keyword arguments.

Annotations
@Override
_dogetback to summary
public PyObject _doget(PyObject container, PyObject wherefound)

Overrides org.python.core.PyReflectedFunction._doget.

Annotations
@Override
addConstructorback to summary
public void addConstructor(Constructor<?> m)
constructProxyback to summary
protected void constructProxy(PyObject obj, Constructor<?> ctor, Object[] args, Class<?> proxy)
makeback to summary
pack-priv PyObject make(PyObject[] args, String[] keywords)
makeArgsback to summary
private ReflectedArgs makeArgs(Constructor<?> m)
toStringback to summary
public String toString()

Overrides org.python.core.PyReflectedFunction.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override