org.python.compiler
Class ScopeInfo
java.lang.Object
org.python.compiler.ScopeInfo
- All Implemented Interfaces:
- ScopeConstants
- public class ScopeInfo
- extends Object
- implements ScopeConstants
Fields inherited from interface org.python.compiler.ScopeConstants |
BOUND, CELL, CLASS_GLOBAL, CLASSSCOPE, FREE, FROM_PARAM, FUNCSCOPE, GLOBAL, NGLOBAL, PARAM, TOPSCOPE |
scope_node
public SimpleNode scope_node
scope_name
public String scope_name
level
public int level
func_level
public int func_level
kind
public int kind
nested_scopes
public boolean nested_scopes
unqual_exec
public boolean unqual_exec
exec
public boolean exec
from_import_star
public boolean from_import_star
ac
public ArgListCompiler ac
tbl
public Hashtable tbl
names
public Vector names
local
public int local
inner_free
public Hashtable inner_free
cellvars
public Vector cellvars
jy_paramcells
public Vector jy_paramcells
jy_npurecell
public int jy_npurecell
cell
public int cell
freevars
public Vector freevars
ScopeInfo
public ScopeInfo(String name,
SimpleNode node,
int level,
int kind,
int func_level,
ArgListCompiler ac,
boolean nested_scopes)
dump
public void dump()
addGlobal
public int addGlobal(String name)
addParam
public void addParam(String name)
markFromParam
public void markFromParam()
addBound
public void addBound(String name)
addUsed
public void addUsed(String name)
cook
public void cook(ScopeInfo up,
CompilationContext ctxt)
throws Exception
- Throws:
Exception
setup_closure
public void setup_closure(ScopeInfo up)