Top Description Fields Constructors Methods
org.python.core

pack-priv Class JavaCode

Located in compilation unit of org.python.core.Py.

extends PyCode
implements Traverseproc
Class Inheritance
All Implemented Interfaces
org.python.core.Traverseproc

A code object wrapper for a python function.

Field Summary

Modifier and TypeField and Description
private PyObject
Inherited from org.python.core.PyCode:
co_name

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PyObject
call(ThreadState state, PyFrame frame, PyObject closure)

Implements abstract org.python.core.PyCode.call.

public PyObject
call(ThreadState state, PyObject[] args, String[] keywords, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

public PyObject
call(ThreadState state, PyObject self, PyObject[] args, String[] keywords, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

public PyObject
call(ThreadState state, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

public PyObject
call(ThreadState state, PyObject arg1, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

public PyObject
call(ThreadState state, PyObject arg1, PyObject arg2, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

public PyObject
call(ThreadState state, PyObject arg1, PyObject arg2, PyObject arg3, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

public PyObject
call(ThreadState state, PyObject arg1, PyObject arg2, PyObject arg3, PyObject arg4, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

public boolean
public int
traverse(Visitproc visit, Object arg)

Implements org.python.core.Traverseproc.traverse.

Traverses all directly contained PyObjects.

Inherited from org.python.core.PyCode:
callcall

Field Detail

funcback to summary
private PyObject func

Constructor Detail

JavaCodeback to summary
public JavaCode(PyObject func)

Method Detail

callback to summary
public PyObject call(ThreadState state, PyFrame frame, PyObject closure)

Implements abstract org.python.core.PyCode.call.

Annotations
@Override
callback to summary
public PyObject call(ThreadState state, PyObject[] args, String[] keywords, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

Annotations
@Override
callback to summary
public PyObject call(ThreadState state, PyObject self, PyObject[] args, String[] keywords, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

Annotations
@Override
callback to summary
public PyObject call(ThreadState state, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

Annotations
@Override
callback to summary
public PyObject call(ThreadState state, PyObject arg1, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

Annotations
@Override
callback to summary
public PyObject call(ThreadState state, PyObject arg1, PyObject arg2, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

Annotations
@Override
callback to summary
public PyObject call(ThreadState state, PyObject arg1, PyObject arg2, PyObject arg3, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

Annotations
@Override
callback to summary
public PyObject call(ThreadState state, PyObject arg1, PyObject arg2, PyObject arg3, PyObject arg4, PyObject globals, PyObject[] defaults, PyObject closure)

Implements abstract org.python.core.PyCode.call.

Annotations
@Override
refersDirectlyToback to summary
public boolean refersDirectlyTo(PyObject ob)

Implements org.python.core.Traverseproc.refersDirectlyTo.

Doc from org.python.core.Traverseproc.refersDirectlyTo.

Optional operation. Should only be implemented if it is more efficient than calling traverse(Visitproc, Object) with a visitproc that just watches out for ob. Must return false if ob is null.

Annotations
@Override
traverseback to summary
public int traverse(Visitproc visit, Object arg)

Implements org.python.core.Traverseproc.traverse.

Doc from org.python.core.Traverseproc.traverse.

Traverses all directly contained PyObjects. Like in CPython, arg must be passed unmodified to visit as its second parameter. If Visitproc#visit(PyObject, Object) returns nonzero, this return value must be returned immediately by traverse. Visitproc#visit(PyObject, Object) must not be called with a null PyObject-argument.

Annotations
@Override