public class XPathCmpExpr extends XPathBinaryOpExpr
| Modifier and Type | Field and Description |
|---|---|
static int |
GT |
static int |
GTE |
static int |
LT |
static int |
LTE |
int |
op |
a, b| Constructor and Description |
|---|
XPathCmpExpr() |
XPathCmpExpr(int op,
XPathExpression a,
XPathExpression b) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Object |
eval(DataInstance model,
EvaluationContext evalContext) |
Object |
pivot(DataInstance model,
EvaluationContext evalContext,
List<Object> pivots,
Object sentinal)
Pivot this expression, returning values if appropriate, and adding any pivots to the list.
|
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
String |
toString() |
void |
writeExternal(DataOutputStream out) |
toStringeval, hashCode, pivot, print, printParseTreepublic static final int LT
public static final int GT
public static final int LTE
public static final int GTE
public int op
public XPathCmpExpr()
public XPathCmpExpr(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 XPathBinaryOpExprIOExceptionpublic Object pivot(DataInstance model, EvaluationContext evalContext, List<Object> pivots, Object sentinal) throws UnpivotableExpressionException
XPathExpressionpivot in class XPathBinaryOpExprmodel - The model to evaluate the current expression againstevalContext - The evaluation context to evaluate againstpivots - The list of pivot points in the xpath being evaluated. Pivots should be added to this list.sentinal - The value which is being pivoted around.UnpivotableExpressionException - If the expression is too complex to pivotCopyright © 2022. All rights reserved.