|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--condor.classad.Expr | +--condor.classad.Op
A unary or binary expression. An internal (non-leaf) node of an expression tree representing a unary or binary operator applied to one or two operands.
Expr
Field Summary | |
Expr |
arg1
The first (or only) operand. |
Expr |
arg2
The second operand; null if the operator is unary. |
int |
op
The top-level operator. |
Fields inherited from class condor.classad.Expr |
ABSOLUTE_TIME, AND, ATTRIBUTE, BIT_COMPLEMENT, BITAND, BITOR, BITXOR, BOOLEAN, BRIEF, CALL, COMPACT, COND, dblevel, DIFFERENT, DIV, EQUAL, ERROR, formatFlags, formatIndent, GREATER, GREATER_EQ, INTEGER, LEFT_SHIFT, LESS, LESS_EQ, LIST, MAXPREC, MINIMAL_PARENTHESES, MINUS, MOD, MULTI_LINE_ADS, MULTI_LINE_LISTS, NO_ESCAPE_STRINGS, NOT, NOT_EQUAL, OP, opName, OR, PLUS, READABLE, REAL, RECORD, RELATIVE_TIME, RIGHT_SHIFT, SAME, SELECTION, SHOW_ERROR_DETAIL, SHOW_INSTANCES, STRING, SUBSCRIPT, TIMES, type, UMINUS, UNDEFINED, UPLUS, URIGHT_SHIFT |
Constructor Summary | |
Op(int op,
Expr arg1)
Construct a node for a unary operator. |
|
Op(int op,
Expr arg1,
Expr arg2)
Construct a node for a binary operator. |
Method Summary | |
protected int |
prec()
The precedence of the operator in this expression node. |
protected Expr |
reEval(Context ctx)
Evalutate this expression. |
String |
toString()
Convert this Expr to a string. |
Methods inherited from class condor.classad.Expr |
db, db, disableFormatFlags, enableFormatFlags, eval, getFormatFlags, isConstant, isNormalForm, mark, mark, mark, select, setFormatFlags, toString, typeName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final int op
Expr.opName
public final Expr arg1
public final Expr arg2
Constructor Detail |
public Op(int op, Expr arg1, Expr arg2)
op
- the operator.arg1
- the left operand.arg2
- the right operand.public Op(int op, Expr arg1)
op
- the operator.arg1
- the operand.Method Detail |
public String toString()
Expr.formatFlags
and Expr.formatIndent
.
The result may be multiple lines long (it may include embedded newlines
and tabs), but it never ends with a newline.toString
in class Expr
Expr.formatFlags
,
Expr.formatIndent
protected int prec()
prec
in class Expr
Expr.MINIMAL_PARENTHESES
protected Expr reEval(Context ctx)
reEval
in class Expr
ctx
- an evaluation context for evaluating this expressionExpr.eval(condor.classad.Context)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |