public class CoreOperationMod extends CoreOperation
Expression
for the operation "mod".Expression.PointerIterator, Expression.ValueIterator
ADD_PRECEDENCE, AND_PRECEDENCE, COMPARE_PRECEDENCE, MULTIPLY_PRECEDENCE, NEGATE_PRECEDENCE, OR_PRECEDENCE, RELATIONAL_EXPR_PRECEDENCE, UNION_PRECEDENCE
NOT_A_NUMBER, ONE, ZERO
Constructor and Description |
---|
CoreOperationMod(Expression arg1,
Expression arg2)
Create a new CoreOperationMod.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
computeValue(EvalContext context)
Evaluates the expression.
|
protected int |
getPrecedence()
Computes the precedence of the operation.
|
java.lang.String |
getSymbol()
Returns the XPath symbol for this operation, e.g.
|
protected boolean |
isSymmetric()
Returns true if the operation is not sensitive to the order of arguments,
e.g.
|
compute, toString
computeContextDependent, getArguments
isContextDependent, iterate, iteratePointers
public CoreOperationMod(Expression arg1, Expression arg2)
arg1
- dividendarg2
- divisorpublic java.lang.Object computeValue(EvalContext context)
Expression
computeValue
in class CoreOperation
context
- evaluation contextprotected int getPrecedence()
CoreOperation
getPrecedence
in class CoreOperation
protected boolean isSymmetric()
CoreOperation
isSymmetric
in class CoreOperation
public java.lang.String getSymbol()
CoreOperation
getSymbol
in class CoreOperation