|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Object
|
+--condor.classad.Expr
|
+--condor.classad.AttrRef
A reference to another attribute. A leaf node in an expression tree that represents an attribute reference.
Expr,
RecordExpr| Nested Class Summary |
| Nested classes inherited from class condor.classad.Expr |
Expr.Env |
| Field Summary | |
AttrName |
name
The string name associated with this reference. |
| Fields inherited from class condor.classad.Expr |
ABSOLUTE_TIME, AND, ATTRIBUTE, BIT_COMPLEMENT, BITAND, BITOR, BITXOR, BOOLEAN, CALL, COND, dateAndTimeFormat, dateFormat, dblevel, DIFFERENT, DIV, EQUAL, ERROR, GREATER, GREATER_EQ, INTEGER, LEFT_SHIFT, LESS, LESS_EQ, LIST, MAXPREC, MINUS, MOD, NOT, NOT_EQUAL, OP, opName, opNameXML, OR, PLUS, REAL, RECORD, RELATIVE_TIME, RIGHT_SHIFT, SAME, SELECTION, STRING, SUBSCRIPT, TIMES, type, UMINUS, UNDEFINED, UPLUS, URIGHT_SHIFT |
| Constructor Summary | |
AttrRef(AttrName name)
Create a new AttrRef. |
|
AttrRef(String name)
Create a new AttrRef. |
|
| Method Summary | |
protected Expr |
eval1(Expr.Env env)
Evaluate this Expr. |
int |
prec()
The precedence of this expression |
String |
toString()
Convert this AttrRef to a string. |
StringBuffer |
toString(StringBuffer sb)
Convert this Expr to a string, appending the result to the end of "sb". |
| Methods inherited from class condor.classad.Expr |
db, db, eval, eval, intValue, isConstant, isTrue, realValue, selectExpr, stringValue, subExpr, typeName |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final AttrName name
| Constructor Detail |
public AttrRef(AttrName name)
name - the string name associated with this reference.public AttrRef(String name)
name - the string name associated with this reference.| Method Detail |
public String toString()
toString in class ExprClassAdWriterpublic StringBuffer toString(StringBuffer sb)
toString in class Exprsb - a place to put the result.
ClassAdWriterprotected Expr eval1(Expr.Env env)
Expr.eval().
The env is searched for name of this AttrRef. Scopes that do not
define that name are popped off the stack, leaving the scope defining
the name at the top. If the name is not found in any of the scopes,
the env becomes the empty environment, and the result is the UNDEFINED
constant.
eval1 in class Exprenv - the environment to search for the name. It is modified in
place to indicate where the name was resolved.
public int prec()
prec in class ExprClassAdWriter.MINIMAL_PARENTHESES
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||