|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.python.core.PyObject
org.python.core.PyCode
org.python.core.PyBaseCode
org.python.core.PyBytecode
public class PyBytecode
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.python.core.PyObject |
|---|
PyObject.ConversionException |
| Field Summary | |
|---|---|
byte[] |
co_code
|
PyObject[] |
co_consts
|
byte[] |
co_lnotab
|
static int |
CO_MAXBLOCKS
|
String[] |
co_names
|
int |
co_stacksize
|
static boolean |
defaultDebug
|
| Fields inherited from class org.python.core.PyBaseCode |
|---|
co_argcount, co_cellvars, co_filename, co_firstlineno, co_flags, co_freevars, co_nlocals, co_varnames, jy_npurecell, varargs, varkwargs |
| Fields inherited from class org.python.core.PyCode |
|---|
co_name |
| Fields inherited from class org.python.core.PyObject |
|---|
TYPE |
| Constructor Summary | |
|---|---|
PyBytecode(int argcount,
int nlocals,
int stacksize,
int flags,
String codestring,
PyObject[] constants,
String[] names,
String[] varnames,
String filename,
String name,
int firstlineno,
String lnotab)
|
|
PyBytecode(int argcount,
int nlocals,
int stacksize,
int flags,
String codestring,
PyObject[] constants,
String[] names,
String[] varnames,
String filename,
String name,
int firstlineno,
String lnotab,
String[] cellvars,
String[] freevars)
|
|
| Method Summary | |
|---|---|
void |
__delattr__(String name)
A variant of the __delattr__ method which accepts a String as the key. |
PyObject |
__dir__()
Equivalent to the standard Python __dir__ method. |
PyObject |
__findattr_ex__(String name)
Attribute lookup hook. |
void |
__setattr__(String name,
PyObject value)
A variant of the __setattr__ method which accepts a String as the key. |
static void |
_allDebug(boolean setting)
|
PyObject |
_debug(int maxCount)
|
| Methods inherited from class org.python.core.PyBaseCode |
|---|
call, call, call, call, call, call, call, call, getCompilerFlags, hasFreevars, toString |
| Methods inherited from class org.python.core.PyCode |
|---|
call, call |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean defaultDebug
public static final int CO_MAXBLOCKS
public final byte[] co_code
public final PyObject[] co_consts
public final String[] co_names
public final int co_stacksize
public final byte[] co_lnotab
| Constructor Detail |
|---|
public PyBytecode(int argcount,
int nlocals,
int stacksize,
int flags,
String codestring,
PyObject[] constants,
String[] names,
String[] varnames,
String filename,
String name,
int firstlineno,
String lnotab)
public PyBytecode(int argcount,
int nlocals,
int stacksize,
int flags,
String codestring,
PyObject[] constants,
String[] names,
String[] varnames,
String filename,
String name,
int firstlineno,
String lnotab,
String[] cellvars,
String[] freevars)
| Method Detail |
|---|
public static void _allDebug(boolean setting)
public PyObject _debug(int maxCount)
public PyObject __dir__()
PyObject
__dir__ in class PyObject
public void __setattr__(String name,
PyObject value)
PyObject
__setattr__ in class PyObjectname - the name whose value will be set -
must be an interned string .value - the value to set this name toPyObject.__setattr__(PyString, PyObject)public void __delattr__(String name)
PyObject__delattr__(PyString name)
with the appropriate args.
The only reason to override this method is for performance.
__delattr__ in class PyObjectname - the name which will be removed -
must be an interned string .PyObject.__delattr__(PyString)public PyObject __findattr_ex__(String name)
PyObjectPyObject.__getattr__(String) or
PyObject.__findattr__(String). Both methods have a clear policy for
failed lookups.
__findattr_ex__ in class PyObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||