public abstract class CoreOperationRelationalExpression extends CoreOperation
Expression.PointerIterator, Expression.ValueIteratorADD_PRECEDENCE, AND_PRECEDENCE, COMPARE_PRECEDENCE, MULTIPLY_PRECEDENCE, NEGATE_PRECEDENCE, OR_PRECEDENCE, RELATIONAL_EXPR_PRECEDENCE, UNION_PRECEDENCENOT_A_NUMBER, ONE, ZERO| Modifier | Constructor and Description |
|---|---|
protected |
CoreOperationRelationalExpression(Expression[] args)
Create a new CoreOperationRelationalExpression.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
computeValue(EvalContext context)
Evaluates the expression.
|
protected abstract boolean |
evaluateCompare(int compare)
Template method for subclasses to evaluate the result of a comparison.
|
protected int |
getPrecedence()
Computes the precedence of the operation.
|
protected boolean |
isSymmetric()
Returns true if the operation is not sensitive to the order of arguments,
e.g. "=", "and" etc, and false if it is, e.g.
|
compute, getSymbol, toStringcomputeContextDependent, getArgumentsisContextDependent, iterate, iteratePointersprotected CoreOperationRelationalExpression(Expression[] args)
args - argumentspublic final Object computeValue(EvalContext context)
ExpressioncomputeValue in class CoreOperationcontext - evaluation contextprotected final int getPrecedence()
CoreOperationgetPrecedence in class CoreOperationprotected final boolean isSymmetric()
CoreOperationisSymmetric in class CoreOperationprotected abstract boolean evaluateCompare(int compare)
compare - result of comparison to evaluateCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.