public abstract class XPathExpression extends java.lang.Object implements Externalizable
Modifier and Type | Field and Description |
---|---|
(package private) int |
indent |
Constructor and Description |
---|
XPathExpression() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval(EvaluationContext evalContext) |
abstract java.lang.Object |
eval(FormInstance model,
EvaluationContext evalContext) |
int |
hashCode() |
java.util.List<java.lang.Object> |
pivot(FormInstance model,
EvaluationContext evalContext) |
java.lang.Object |
pivot(FormInstance model,
EvaluationContext evalContext,
java.util.List<java.lang.Object> pivots,
java.lang.Object sentinal)
Pivot this expression, returning values if appropriate, and adding any pivots to the list.
|
void |
print(java.lang.Object o) |
void |
printParseTree() |
private void |
printStr(java.lang.String s) |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
readExternal, writeExternal
public java.lang.Object eval(EvaluationContext evalContext)
public abstract java.lang.Object eval(FormInstance model, EvaluationContext evalContext)
public final java.util.List<java.lang.Object> pivot(FormInstance model, EvaluationContext evalContext) throws UnpivotableExpressionException
UnpivotableExpressionException
public java.lang.Object pivot(FormInstance model, EvaluationContext evalContext, java.util.List<java.lang.Object> pivots, java.lang.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 pivotprivate void printStr(java.lang.String s)
public void printParseTree()
public void print(java.lang.Object o)
public int hashCode()
hashCode
in class java.lang.Object