|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.parser.Scope
public abstract class Scope
Parse scope.
Field Summary | |
---|---|
protected Scope |
_parent
|
Constructor Summary | |
---|---|
Scope()
|
|
Scope(Scope parent)
|
Method Summary | |
---|---|
abstract InterpretedClassDef |
addClass(Location location,
java.lang.String name,
java.lang.String parent,
java.util.ArrayList<java.lang.String> ifaceList,
int index,
boolean isTop)
Adds a class. |
protected abstract void |
addConditionalClass(InterpretedClassDef def)
|
protected void |
addConditionalFunction(Function function)
|
protected void |
addConditionalFunction(java.lang.String name,
Function function)
|
void |
addConstant(java.lang.String name,
Expr value)
Adds a constant. |
abstract void |
addFunction(java.lang.String name,
Function function,
boolean isTop)
Adds a function. |
Scope |
getParent()
|
boolean |
isAbstract()
Returns true for an abstract scope, e.g. |
boolean |
isClass()
|
boolean |
isFunction()
|
boolean |
isGlobal()
|
boolean |
isIf()
|
boolean |
isSwitchCase()
|
boolean |
isTry()
|
boolean |
isWhile()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Scope _parent
Constructor Detail |
---|
public Scope()
public Scope(Scope parent)
Method Detail |
---|
public boolean isAbstract()
public boolean isGlobal()
public boolean isClass()
public boolean isFunction()
public boolean isIf()
public boolean isSwitchCase()
public boolean isWhile()
public boolean isTry()
public Scope getParent()
public void addConstant(java.lang.String name, Expr value)
public abstract void addFunction(java.lang.String name, Function function, boolean isTop)
protected void addConditionalFunction(java.lang.String name, Function function)
protected void addConditionalFunction(Function function)
public abstract InterpretedClassDef addClass(Location location, java.lang.String name, java.lang.String parent, java.util.ArrayList<java.lang.String> ifaceList, int index, boolean isTop)
protected abstract void addConditionalClass(InterpretedClassDef def)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |