Top Fields Constructors Methods
org.python.modules._weakref

public Class ReferenceType

extends AbstractReference
Class Inheritance
Known Direct Subclasses
org.python.modules._weakref.ReferenceTypeDerived
Annotations
@ExposedType
name:weakref
Imports
org.python.core.ArgParser, .Py, .PyNewWrapper, .PyObject, .PyType, org.python.expose.ExposedMethod, .ExposedNew, .ExposedType

Field Summary

Modifier and TypeField and Description
public static final PyType
Inherited from org.python.modules._weakref.AbstractReference:
callbackgref

Constructor Summary

AccessConstructor and Description
public
ReferenceType(PyType subType, ReferenceBackend gref, PyObject callback)

public

Method Summary

Modifier and TypeMethod and Description
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.PyObject.__call__.

The basic method to override when implementing a callable object.

private static ArgParser

Returns:

an or.python.core.ArgParser instance
parseInitArgs
(String
the name of the caller
funcName
,
PyObject[] args, String[]
String-array of keywords
keywords
)

Return an ArgParser setup to ignore keyword args (allowing them to passthru).

public String
toString()

Overrides org.python.core.PyObject.toString.

Returns a string representation of the object.

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

pack-priv final void
weakref___init__(PyObject[] args, String[] keywords)

pack-priv static final PyObject
weakref___new__(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)

Inherited from org.python.modules._weakref.AbstractReference:
__eq____ne__callequalsgethasCallbackhashCodepyrefersDirectlyTotraverse

Field Detail

TYPEback to summary
public static final PyType TYPE

Hides org.python.core.PyObject.TYPE.

Constructor Detail

ReferenceTypeback to summary
public ReferenceType(PyType subType, ReferenceBackend gref, PyObject callback)
ReferenceTypeback to summary
public ReferenceType(ReferenceBackend gref, PyObject callback)

Method Detail

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

Overrides org.python.core.PyObject.__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.

parseInitArgsback to summary
private static ArgParser parseInitArgs(String funcName, PyObject[] args, String[] keywords)

Return an ArgParser setup to ignore keyword args (allowing them to passthru).

Parameters
funcName:String

the name of the caller

args:PyObject[]

or.python.core.PyObject array of args

keywords:String[]

String-array of keywords

Returns:ArgParser

an or.python.core.ArgParser instance

toStringback to summary
public String toString()

Overrides org.python.core.PyObject.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

weakref___call__back to summary
pack-priv final PyObject weakref___call__(PyObject[] args, String[] keywords)
Annotations
@ExposedMethod
weakref___init__back to summary
pack-priv final void weakref___init__(PyObject[] args, String[] keywords)
Annotations
@ExposedMethod
weakref___new__back to summary
pack-priv static final PyObject weakref___new__(PyNewWrapper new_, boolean init, PyType subtype, PyObject[] args, String[] keywords)
Annotations
@ExposedNew