public abstract class XPathExpression extends Object implements Externalizable, Serializable
| Constructor and Description |
|---|
XPathExpression() |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
eval(DataInstance model,
EvaluationContext evalContext) |
Object |
eval(EvaluationContext evalContext) |
int |
hashCode() |
List<Object> |
pivot(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 |
print(Object o) |
void |
printParseTree() |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitreadExternal, writeExternalpublic Object eval(EvaluationContext evalContext)
public abstract Object eval(DataInstance model, EvaluationContext evalContext)
public final List<Object> pivot(DataInstance model, EvaluationContext evalContext) throws UnpivotableExpressionException
UnpivotableExpressionExceptionpublic Object pivot(DataInstance model, EvaluationContext evalContext, List<Object> pivots, Object sentinal) throws UnpivotableExpressionException
model - 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 pivotpublic void printParseTree()
public void print(Object o)
Copyright © 2021. All rights reserved.