|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object condor.classad.Env
An environment for evaluating expressions. Logically, it is the stack of RecordExprs containing the expression being evaluated, with the innermost on top. It is constructed in such a way that it can be updated "in place". When passed as an argument e to eval, e.next.recEx is treated as a pointer to the top of the stack and the e.recEx is ignored. If e.next == null, e represents an empty stack.
Constructor Summary | |
Env()
Create a new "empty" Env. |
|
Env(Env env)
Create a "clone" of a given Env. |
|
Env(RecordExpr recEx,
Env next)
Construct a new Env from its components. |
Method Summary | |
void |
clear()
Change this Env to the "empty" env. |
RecordExpr |
pop(int n)
Pops "n" records off the stack. |
void |
push(RecordExpr recEx)
Push a new RecordExpr onto the stack. |
Expr |
search(AttrName name)
Search for a given attribute name in the RecordExprs on the stack, from innermost to outermost. |
String |
toString()
String representation, for debugging. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Env(RecordExpr recEx, Env next)
recEx
- the top (innermost) RecordExpr.next
- the rest of the stack.public Env()
public Env(Env env)
env
- the Env to be copied.Method Detail |
public void clear()
public void push(RecordExpr recEx)
recEx
- the RecordExpr to be pushed.public RecordExpr pop(int n)
n
- the number of records to pop.
public Expr search(AttrName name)
name
- the name to search for.
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |