org.python.compiler
Class ScopeInfo

java.lang.Object
  extended byorg.python.compiler.ScopeInfo
All Implemented Interfaces:
ScopeConstants

public class ScopeInfo
extends Object
implements ScopeConstants


Field Summary
 ArgListCompiler ac
           
 int cell
           
 Vector cellvars
           
 boolean exec
           
 Vector freevars
           
 boolean from_import_star
           
 int func_level
           
 Hashtable inner_free
           
 int jy_npurecell
           
 Vector jy_paramcells
           
 int kind
           
 int level
           
 int local
           
 Vector names
           
 boolean nested_scopes
           
 String scope_name
           
 SimpleNode scope_node
           
 Hashtable tbl
           
 boolean unqual_exec
           
 
Fields inherited from interface org.python.compiler.ScopeConstants
BOUND, CELL, CLASS_GLOBAL, CLASSSCOPE, FREE, FROM_PARAM, FUNCSCOPE, GLOBAL, NGLOBAL, PARAM, TOPSCOPE
 
Constructor Summary
ScopeInfo(String name, SimpleNode node, int level, int kind, int func_level, ArgListCompiler ac, boolean nested_scopes)
           
 
Method Summary
 void addBound(String name)
           
 int addGlobal(String name)
           
 void addParam(String name)
           
 void addUsed(String name)
           
 void cook(ScopeInfo up, CompilationContext ctxt)
           
 void dump()
           
 void markFromParam()
           
 void setup_closure(ScopeInfo up)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ScopeInfo

public ScopeInfo(String name,
                 SimpleNode node,
                 int level,
                 int kind,
                 int func_level,
                 ArgListCompiler ac,
                 boolean nested_scopes)
Method Detail

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)