|
|||||||||
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
|
PyObject |
f_builtins
|
PyBaseCode |
f_code
|
PyCell[] |
f_env
nested scopes: cell + free env. |
PyObject[] |
f_exits
|
PyObject[] |
f_fastlocals
|
PyObject |
f_globals
|
int |
f_lasti
|
int |
f_lineno
|
PyObject |
f_locals
|
int |
f_ncells
|
int |
f_nfreevars
|
Object[] |
f_savedlocals
|
TraceFunction |
tracefunc
an interface to functions suitable for tracing, e.g. via sys.settrace(). |
Fields inherited from class org.python.core.PyObject |
---|
TYPE |
Constructor Summary | |
---|---|
PyFrame(PyBaseCode code,
PyObject globals)
|
|
PyFrame(PyBaseCode code,
PyObject locals,
PyObject globals,
PyObject builtins)
|
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. |
Object |
checkGeneratorInput()
|
void |
delglobal(String index)
|
void |
dellocal(int index)
|
void |
dellocal(String index)
|
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)
|
void |
setderef(int index,
PyObject value)
|
void |
setglobal(String index,
PyObject value)
|
void |
setline(int line)
|
void |
setlocal(int index,
PyObject value)
|
void |
setlocal(String index,
PyObject value)
|
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 PyFrame f_back
public PyBaseCode f_code
public PyObject f_locals
public PyObject f_globals
public int f_lineno
public PyObject f_builtins
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 PyObject __dir__()
PyObject
__dir__
in class PyObject
public Object getGeneratorInput()
public Object checkGeneratorInput()
public void __setattr__(String name, PyObject value)
PyObject
__setattr__
in class PyObject
name
- 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 PyObject
name
- the name which will be removed -
must be an interned string .PyObject.__delattr__(PyString)
public PyObject __findattr_ex__(String name)
PyObject
PyObject.__getattr__(String)
or
PyObject.__findattr__(String)
. Both methods have a clear policy for
failed lookups.
__findattr_ex__
in class PyObject
public PyObject getLocals()
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 |