XPathConditional class final

A parsed XPath expression used as a condition, calculation or nodeset, together with its source text.

Port of org.javarosa.xpath.XPathConditional (and IConditionExpr).

Annotations
  • @immutable

Constructors

XPathConditional(XPathExpression expr)
Wraps an already parsed expr.
const
XPathConditional.fromParsed(XPathExpression expr, String xpath)
Wraps expr, already parsed from xpath.
XPathConditional.parse(String xpath)
Parses xpath. Throws XPathSyntaxException.

Properties

expr → XPathExpression
The expression.
final
hashCode → int
The hash code for this object.
no setteroverride
hasNow → bool
Whether the source text mentions now() (used for timestamps).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
xpath → String?
The source text, when parsed from text.
final

Methods

eval(DataInstance? model, EvaluationContext context) → bool
The value as a boolean.
evalNodeset(DataInstance? model, EvaluationContext context) → List<TreeReference>
The node references of a path expression.
evalRaw(DataInstance? model, EvaluationContext context) → Object
The unpacked value. An XPathUnsupportedException is re-thrown with the source text as its detail, as JavaRosa does.
evalReadable(DataInstance? model, EvaluationContext context) → String
The value as a string.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pivot(DataInstance? model, EvaluationContext context) → List<Object>
The pivots of this expression (see pivotsOf).
toString() → String
A string representation of this object.
override
triggers(TreeReference? contextRef) → Set<TreeReference>
The references whose changes can affect this expression, anchored to contextRef (predicates removed; references inside predicates included).

Operators

operator ==(Object other) → bool
The equality operator.
override