|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--condor.classad.Expr | +--condor.classad.ListExpr
A list of expressions.
An internal (non-leaf) node of an expression tree representing the
list-construction operator { expr, expr, ... }
.
Expr
Nested Class Summary |
Nested classes inherited from class condor.classad.Expr |
Expr.Env |
Field Summary |
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 | |
ListExpr()
Construct an empty list. |
|
ListExpr(List l)
Construct a list from a list of expressions. |
Method Summary | |
Expr |
add(Expr e)
Appends the specified Expr to the end of this list. |
protected Expr |
eval1(Expr.Env env)
Evaluate this Expr. |
Iterator |
iterator()
Get an iterator for iterating throught the members of this list. |
int |
prec()
The precedence of the operator in this expression node. |
int |
size()
Get the length of this list. |
Expr |
sub(int i)
Get a member of this list. |
StringBuffer |
toString(StringBuffer sb)
Convert this Expr to a string, appending the result to the end of "sb". |
protected String |
typeName()
Get the type of the expression. |
Methods inherited from class condor.classad.Expr |
db, db, eval, eval, intValue, isConstant, isTrue, realValue, selectExpr, stringValue, subExpr, toString |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ListExpr()
public ListExpr(List l)
Method Detail |
public int size()
public Expr sub(int i)
i
- the member to be retrieved.
public Expr add(Expr e)
e
- the Expr to add.
public Iterator iterator()
protected String typeName()
typeName
in class Expr
protected Expr eval1(Expr.Env env)
Expr.eval()
.
A List evaluates to itself.
eval1
in class Expr
env
- ignored.
public StringBuffer toString(StringBuffer sb)
toString
in class Expr
sb
- a place to put the result.
ClassAdWriter
public int prec()
prec
in class Expr
ClassAdWriter.MINIMAL_PARENTHESES
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |