|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.uwaterloo.cs.ql.interp.Env
public class Env
| Field Summary | |
|---|---|
java.io.PrintStream |
err
|
java.io.InputStream |
in
|
java.io.PrintStream |
out
|
| Constructor Summary | |
|---|---|
Env()
Env. |
|
| Method Summary | |
|---|---|
ScriptUnitNode |
getMainUnit()
Gets the main script unit. |
Variable |
lookup(java.lang.String name)
Looks up a variable. |
Function |
lookupFunction(java.lang.String name,
java.lang.Class[] paramTypes)
Looks up a Function. |
Function[] |
lookupFunctions(java.lang.String name)
Looks up all functions with a given name. |
Scope |
peepScope()
Peeps the scope on top of the stack. |
Scope |
popScope()
Pops the scope on top of the stack. |
void |
pushScope(Scope scp)
Pushes a scope onto the stack. |
void |
removeAllScopes()
Removes all scopes on the stack. |
void |
setMainUnit(ScriptUnitNode unit)
Sets the main script unit. |
ScriptUnitNode |
traceScriptUnit()
Traces the script unit on top of the stack. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.io.InputStream in
public java.io.PrintStream out
public java.io.PrintStream err
| Constructor Detail |
|---|
public Env()
| Method Detail |
|---|
public ScriptUnitNode getMainUnit()
public void setMainUnit(ScriptUnitNode unit)
public void removeAllScopes()
public Scope popScope()
public void pushScope(Scope scp)
public Scope peepScope()
public ScriptUnitNode traceScriptUnit()
public Variable lookup(java.lang.String name)
throws LookupException
LookupException - if no variable can be found.
public Function lookupFunction(java.lang.String name,
java.lang.Class[] paramTypes)
throws LookupException
name - the name of the Function.paramTypes - the param types of the Function.
LookupException
public Function[] lookupFunctions(java.lang.String name)
throws LookupException
name - the name of functions to look up.
LookupException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||