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) |
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
String |
toString() |
void |
writeExternal(DataOutputStream out) |
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 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 © 2023. All rights reserved.