|
|||||||||
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.PyFrame
public class PyFrame
A Python frame object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.python.core.PyObject |
---|
PyObject.ConversionException |
Field Summary | |
---|---|
PyFrame |
f_back
Previous frame or null. |
PyObject |
f_builtins
builtin symbol table. |
PyBaseCode |
f_code
The underyling code object. |
PyCell[] |
f_env
Nested scopes: cell + free env. |
PyObject[] |
f_exits
with context exits - used by generated bytecode |
PyObject[] |
f_fastlocals
|
PyObject |
f_globals
Global symbol table. |
int |
f_lasti
|
int |
f_lineno
Current line number. |
PyObject |
f_locals
Local symbol table. |
int |
f_ncells
|
int |
f_nfreevars
|
Object[] |
f_savedlocals
|
TraceFunction |
tracefunc
An interface to functions suitable for tracing, e.g. via sys.settrace(). |
static PyType |
TYPE
|
Constructor Summary | |
---|---|
PyFrame(PyBaseCode code,
PyObject globals)
|
|
PyFrame(PyBaseCode code,
PyObject locals,
PyObject globals,
PyObject builtins)
|
Method Summary | |
---|---|
Object |
checkGeneratorInput()
|
void |
delglobal(String index)
|
void |
dellocal(int index)
|
void |
dellocal(String index)
|
void |
delTrace()
|
PyObject |
getclosure(int index)
|
PyObject |
getderef(int index)
|
PyObject |
getf_locals()
Return the current f_locals dict. |
Object |
getGeneratorInput()
|
PyObject |
getglobal(String index)
|
int |
getline()
|
PyObject |
getlocal(int index)
|
PyObject |
getLocals()
Return the locals dict. |
PyObject |
getname(String index)
|
PyObject |
getTrace()
|
void |
setderef(int index,
PyObject value)
|
void |
setglobal(String index,
PyObject value)
|
void |
setline(int line)
Track the current line number. |
void |
setlocal(int index,
PyObject value)
|
void |
setlocal(String index,
PyObject value)
|
void |
setTrace(PyObject trace)
|
void |
to_cell(int parm_index,
int env_index)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PyType TYPE
public PyFrame f_back
public PyBaseCode f_code
public PyObject f_builtins
public PyObject f_globals
public PyObject f_locals
public int f_lineno
public PyObject[] f_fastlocals
public PyCell[] f_env
public int f_ncells
public int f_nfreevars
public int f_lasti
public Object[] f_savedlocals
public PyObject[] f_exits
public TraceFunction tracefunc
Constructor Detail |
---|
public PyFrame(PyBaseCode code, PyObject locals, PyObject globals, PyObject builtins)
public PyFrame(PyBaseCode code, PyObject globals)
Method Detail |
---|
public Object getGeneratorInput()
public Object checkGeneratorInput()
public PyObject getLocals()
public PyObject getTrace()
public void setTrace(PyObject trace)
public void delTrace()
public PyObject getf_locals()
public void setline(int line)
public int getline()
public PyObject getlocal(int index)
public PyObject getname(String index)
public PyObject getglobal(String index)
public void setlocal(int index, PyObject value)
public void setlocal(String index, PyObject value)
public void setglobal(String index, PyObject value)
public void dellocal(int index)
public void dellocal(String index)
public void delglobal(String index)
public PyObject getclosure(int index)
public PyObject getderef(int index)
public void setderef(int index, PyObject value)
public void to_cell(int parm_index, int env_index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |