com.caucho.quercus.parser
Class FunctionScope

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

public class FunctionScope
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.
 boolean isFunction()
           
 
Methods inherited from class com.caucho.quercus.parser.Scope
addConditionalFunction, addConstant, getParent, isAbstract, isClass, isGlobal, isIf, isSwitchCase, isTry, isWhile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isFunction

public boolean isFunction()
Overrides:
isFunction 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