org.python.core

Class PyTableCode

public class PyTableCode extends PyCode

An implementation of PyCode where the actual executable content is stored as a PyFunctionTable instance and an integer index.
Field Summary
booleanargs
intco_argcount
String[]co_cellvars
Stringco_filename
intco_firstlineno
intco_flags
String[]co_freevars
intco_nlocals
String[]co_varnames
static intCO_ALL_FEATURES
static intCO_FUTUREDIVISION
static intCO_GENERATOR
static intCO_GENERATOR_ALLOWED
static intCO_NESTED
static intCO_OPTIMIZED
static intCO_VARARGS
static intCO_VARKEYWORDS
intjy_npurecell
booleankeywords
Constructor Summary
PyTableCode(int argcount, String[] varnames, String filename, String name, int firstlineno, boolean args, boolean keywords, PyFunctionTable funcs, int func_id)
PyTableCode(int argcount, String[] varnames, String filename, String name, int firstlineno, boolean args, boolean keywords, PyFunctionTable funcs, int func_id, String[] cellvars, String[] freevars, int npurecell, int moreflags)
Method Summary
PyObjectcall(PyFrame frame, PyObject closure)
PyObjectcall(PyObject globals, PyObject[] defaults, PyObject closure)
PyObjectcall(PyObject arg1, PyObject globals, PyObject[] defaults, PyObject closure)
PyObjectcall(PyObject arg1, PyObject arg2, PyObject globals, PyObject[] defaults, PyObject closure)
PyObjectcall(PyObject arg1, PyObject arg2, PyObject arg3, PyObject globals, PyObject[] defaults, PyObject closure)
PyObjectcall(PyObject self, PyObject[] call_args, String[] call_keywords, PyObject globals, PyObject[] defaults, PyObject closure)
PyObjectcall(PyObject[] call_args, String[] call_keywords, PyObject globals, PyObject[] defaults, PyObject closure)
booleanhasFreevars()
StringtoString()
void__delattr__(String name)
PyObject__dir__()
PyObject__findattr__(String name)
void__setattr__(String name, PyObject value)

Field Detail

args

public boolean args

co_argcount

public int co_argcount

co_cellvars

public String[] co_cellvars

co_filename

public String co_filename

co_firstlineno

public int co_firstlineno

co_flags

public int co_flags

co_freevars

public String[] co_freevars

co_nlocals

public int co_nlocals

co_varnames

public String[] co_varnames

CO_ALL_FEATURES

public static final int CO_ALL_FEATURES

CO_FUTUREDIVISION

public static final int CO_FUTUREDIVISION

CO_GENERATOR

public static final int CO_GENERATOR

CO_GENERATOR_ALLOWED

public static final int CO_GENERATOR_ALLOWED

CO_NESTED

public static final int CO_NESTED

CO_OPTIMIZED

public static final int CO_OPTIMIZED

CO_VARARGS

public static final int CO_VARARGS

CO_VARKEYWORDS

public static final int CO_VARKEYWORDS

jy_npurecell

public int jy_npurecell

keywords

public boolean keywords

Constructor Detail

PyTableCode

public PyTableCode(int argcount, String[] varnames, String filename, String name, int firstlineno, boolean args, boolean keywords, PyFunctionTable funcs, int func_id)

PyTableCode

public PyTableCode(int argcount, String[] varnames, String filename, String name, int firstlineno, boolean args, boolean keywords, PyFunctionTable funcs, int func_id, String[] cellvars, String[] freevars, int npurecell, int moreflags)

Method Detail

call

public PyObject call(PyFrame frame, PyObject closure)

call

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

call

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

call

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

call

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

call

public PyObject call(PyObject self, PyObject[] call_args, String[] call_keywords, PyObject globals, PyObject[] defaults, PyObject closure)

call

public PyObject call(PyObject[] call_args, String[] call_keywords, PyObject globals, PyObject[] defaults, PyObject closure)

hasFreevars

public boolean hasFreevars()

toString

public String toString()

__delattr__

public void __delattr__(String name)

__dir__

public PyObject __dir__()

__findattr__

public PyObject __findattr__(String name)

__setattr__

public void __setattr__(String name, PyObject value)