public class XPathFilterExpr extends XPathExpression
| Modifier and Type | Field and Description |
|---|---|
XPathExpression[] |
predicates |
XPathExpression |
x |
| Constructor and Description |
|---|
XPathFilterExpr() |
XPathFilterExpr(XPathExpression x,
XPathExpression[] predicates) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFunc(String name) |
boolean |
equals(Object o) |
Object |
eval(DataInstance model,
EvaluationContext evalContext) |
boolean |
isIdempotent()
Returns true if this expression is idempotent with respect to the current state of the form.
|
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) |
eval, hashCode, pivot, print, printParseTreepublic XPathExpression x
public XPathExpression[] predicates
public XPathFilterExpr()
public XPathFilterExpr(XPathExpression x, XPathExpression[] predicates)
public Object eval(DataInstance model, EvaluationContext evalContext)
eval in class XPathExpressionpublic void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
IOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
IOExceptionpublic Object pivot(DataInstance model, EvaluationContext evalContext, List<Object> pivots, Object sentinal) throws UnpivotableExpressionException
XPathExpressionpivot in class XPathExpressionmodel - 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 boolean isIdempotent()
XPathExpressionisIdempotent in class XPathExpressionpublic boolean containsFunc(@NotNull
String name)
containsFunc in class XPathExpressionCopyright © 2024. All rights reserved.