Documentation of 'org.python.compiler.ScopeInfo' Java class
ScopeInfo
org.python.compiler

Class ScopeInfo

    • Field Detail

      • scope_name

        public java.lang.String scope_name
      • level

        public int level
      • func_level

        public int func_level
      • kind

        public int kind
      • unqual_exec

        public boolean unqual_exec
      • exec

        public boolean exec
      • from_import_star

        public boolean from_import_star
      • contains_ns_free_vars

        public boolean contains_ns_free_vars
      • generator

        public boolean generator
      • yield_count

        public int yield_count
      • max_with_count

        public int max_with_count
      • tbl

        public java.util.Map<java.lang.String,SymInfo> tbl
      • names

        public java.util.Vector<java.lang.String> names
      • local

        public int local
      • inner_free

        public java.util.Hashtable<java.lang.String,java.lang.Object> inner_free
      • cellvars

        public java.util.Vector<java.lang.String> cellvars
      • jy_paramcells

        public java.util.Vector<java.lang.String> jy_paramcells
      • jy_npurecell

        public int jy_npurecell
      • cell

        public int cell
      • distance

        public int distance
      • freevars

        public java.util.Vector<java.lang.String> freevars
    • Constructor Detail

      • ScopeInfo

        public ScopeInfo(java.lang.String name,
                         PythonTree node,
                         int level,
                         int kind,
                         int func_level,
                         ArgListCompiler ac)
    • Method Detail

      • dump

        public void dump()
      • addGlobal

        public int addGlobal(java.lang.String name)
      • addParam

        public void addParam(java.lang.String name)
      • markFromParam

        public void markFromParam()
      • addBound

        public void addBound(java.lang.String name)
      • addUsed

        public void addUsed(java.lang.String name)
      • cook

        public void cook(ScopeInfo up,
                         int distance,
                         CompilationContext ctxt)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setup_closure

        public void setup_closure()
        setup the closure on this scope using the scope passed into cook as up as the containing scope
      • setup_closure

        public void setup_closure(ScopeInfo up)
        setup the closure on this scope using the passed in scope. This is used by jythonc to setup its closures.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • defineAsGenerator

        public void defineAsGenerator(expr node)
      • noteReturnValue

        public void noteReturnValue(Return node)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.