|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--condor.classad.Expr.Env
An environment for evaluating expressions. Logically, it is a stack of RecordExprs, from innermost to outermost, containing in the expression being evaluated. It is constructed in such a way that it can be updated "in place". When passed as an argument e to eval, e.next is treated as a pointer to the top of the stack and the e.recEx is ignored. Thus an argument e where e.next == null is treated as an empty stack, and if e.next != null, e.next.recEx is the top of the stack.
Constructor Summary | |
Expr.Env()
Create a new "empty" Env. |
|
Expr.Env(Expr.Env env)
Create a "clone" of a given Env. |
|
Expr.Env(RecordExpr recEx,
Expr.Env next)
Construct a new Env from its components. |
Method Summary | |
void |
clear()
Change this Env to the "empty" env. |
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 Expr.Env(RecordExpr recEx, Expr.Env next)
recEx
- the top (innermost) RecordExpr.next
- the rest of the stack.public Expr.Env()
public Expr.Env(Expr.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 Expr search(AttrName name)
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |