public class XPathArithExpr extends XPathBinaryOpExpr
| Modifier and Type | Field and Description |
|---|---|
static int |
ADD |
static int |
DIVIDE |
static int |
MODULO |
static int |
MULTIPLY |
int |
op |
static int |
SUBTRACT |
a, b| Constructor and Description |
|---|
XPathArithExpr() |
XPathArithExpr(int op,
XPathExpression a,
XPathExpression b) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Object |
eval(DataInstance model,
EvaluationContext evalContext) |
boolean |
isIdempotent()
Returns true if this expression is idempotent with respect to the current state of the form.
|
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
String |
toString() |
void |
writeExternal(DataOutputStream out) |
containsFunc, pivot, toStringeval, hashCode, pivot, print, printParseTreepublic static final int ADD
public static final int SUBTRACT
public static final int MULTIPLY
public static final int DIVIDE
public static final int MODULO
public int op
public XPathArithExpr()
public XPathArithExpr(int op,
XPathExpression a,
XPathExpression b)
public Object eval(DataInstance model, EvaluationContext evalContext)
eval in class XPathExpressionpublic boolean isIdempotent()
XPathExpressionisIdempotent in class XPathExpressionpublic boolean equals(Object o)
equals in class XPathBinaryOpExprpublic void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizablereadExternal in class XPathBinaryOpExprIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class XPathBinaryOpExprIOExceptionCopyright © 2024. All rights reserved.