com.caucho.quercus.parser
Class GlobalScope

java.lang.Object
  extended by com.caucho.quercus.parser.Scope
      extended by com.caucho.quercus.parser.GlobalScope

public class GlobalScope
extends Scope

Parse scope.


Field Summary
 
Fields inherited from class com.caucho.quercus.parser.Scope
_parent
 
Method Summary
 InterpretedClassDef addClass(Location location, java.lang.String name, java.lang.String parentName, java.util.ArrayList<java.lang.String> ifaceList, int index, boolean isTop)
          Adds a class
protected  void addConditionalClass(InterpretedClassDef def)
           
protected  void addConditionalFunction(java.lang.String name, Function function)
           
 void addFunction(java.lang.String name, Function function, boolean isTop)
          Adds a function.
 java.util.ArrayList<InterpretedClassDef> getClassList()
          Returns the list of defined classes.
 java.util.HashMap<java.lang.String,InterpretedClassDef> getClassMap()
          Returns the class map.
 java.util.HashMap<java.lang.String,InterpretedClassDef> getConditionalClassMap()
          Returns the conditional class map.
 java.util.HashMap<java.lang.String,Function> getConditionalFunctionMap()
          Returns the conditional function map.
 java.util.ArrayList<Function> getFunctionList()
          Returns the function list.
 java.util.HashMap<java.lang.String,Function> getFunctionMap()
          Returns the function map.
 boolean isGlobal()
           
 
Methods inherited from class com.caucho.quercus.parser.Scope
addConditionalFunction, addConstant, getParent, isAbstract, isClass, isFunction, isIf, isSwitchCase, isTry, isWhile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isGlobal

public boolean isGlobal()
Overrides:
isGlobal in class Scope

addFunction

public void addFunction(java.lang.String name,
                        Function function,
                        boolean isTop)
Adds a function.

Specified by:
addFunction in class Scope

addConditionalFunction

protected void addConditionalFunction(java.lang.String name,
                                      Function function)
Overrides:
addConditionalFunction in class Scope

addClass

public InterpretedClassDef addClass(Location location,
                                    java.lang.String name,
                                    java.lang.String parentName,
                                    java.util.ArrayList<java.lang.String> ifaceList,
                                    int index,
                                    boolean isTop)
Adds a class

Specified by:
addClass in class Scope

addConditionalClass

protected void addConditionalClass(InterpretedClassDef def)
Specified by:
addConditionalClass in class Scope

getFunctionMap

public java.util.HashMap<java.lang.String,Function> getFunctionMap()
Returns the function map.


getFunctionList

public java.util.ArrayList<Function> getFunctionList()
Returns the function list. The function list may include multiple functions with the same name, e.g. from inside conditionals.


getConditionalFunctionMap

public java.util.HashMap<java.lang.String,Function> getConditionalFunctionMap()
Returns the conditional function map.


getClassMap

public java.util.HashMap<java.lang.String,InterpretedClassDef> getClassMap()
Returns the class map.


getClassList

public java.util.ArrayList<InterpretedClassDef> getClassList()
Returns the list of defined classes. The class list may include conditional classes.


getConditionalClassMap

public java.util.HashMap<java.lang.String,InterpretedClassDef> getConditionalClassMap()
Returns the conditional class map.