public class XPathFilterExpr extends XPathExpression
Modifier and Type | Field and Description |
---|---|
XPathExpression[] |
predicates |
XPathExpression |
x |
indent
Constructor and Description |
---|
XPathFilterExpr() |
XPathFilterExpr(XPathExpression x,
XPathExpression[] predicates) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
eval(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 |
readExternal(java.io.DataInputStream in,
PrototypeFactory pf) |
java.lang.String |
toString() |
void |
writeExternal(java.io.DataOutputStream out) |
eval, hashCode, pivot, print, printParseTree
public XPathExpression x
public XPathExpression[] predicates
public XPathFilterExpr()
public XPathFilterExpr(XPathExpression x, XPathExpression[] predicates)
public java.lang.Object eval(FormInstance model, EvaluationContext evalContext)
eval
in class XPathExpression
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void readExternal(java.io.DataInputStream in, PrototypeFactory pf) throws java.io.IOException, DeserializationException
java.io.IOException
DeserializationException
public void writeExternal(java.io.DataOutputStream out) throws java.io.IOException
java.io.IOException
public java.lang.Object pivot(FormInstance model, EvaluationContext evalContext, java.util.List<java.lang.Object> pivots, java.lang.Object sentinal) throws UnpivotableExpressionException
XPathExpression
pivot
in class XPathExpression
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 pivot