public class FunctionScope extends Scope
Modifier and Type | Method and Description |
---|---|
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)
Adds a conditional class.
|
protected void |
addConditionalFunction(StringValue name,
Function function)
Adds a function defined in a conditional block.
|
void |
addFunction(StringValue name,
Function function,
boolean isTop)
Adds a function.
|
boolean |
isFunction()
Returns true if scope is local to a function.
|
addConditionalFunction, addConstant, getParent, isAbstract, isClass, isGlobal, isIf, isSwitchCase, isTry, isWhile
public boolean isFunction()
isFunction
in class Scope
public void addFunction(StringValue name, Function function, boolean isTop)
addFunction
in class Scope
protected void addConditionalFunction(StringValue name, Function function)
addConditionalFunction
in class Scope
public InterpretedClassDef addClass(Location location, java.lang.String name, java.lang.String parentName, java.util.ArrayList<java.lang.String> ifaceList, int index, boolean isTop)
protected void addConditionalClass(InterpretedClassDef def)
Scope
addConditionalClass
in class Scope