CompareToNodeExpression class final
A predicate comparing a relative path (evaluated on each candidate
node) with a value that doesn't depend on the candidate: name = 'x',
value > /data/limit, or a two-argument idempotent function such as
selected(choices, /data/q).
Port of org.javarosa.core.model.CompareToNodeExpression.
Properties
- contextSide → XPathExpression
-
The candidate-independent side (absolute path or literal).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nodeSide → XPathPathExpr
-
The relative path evaluated on each candidate.
final
- original → XPathExpression
-
The whole predicate.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
evalContextSide(
DataInstance sourceInstance, EvaluationContext context) → Object - contextSide, unpacked when it is a path.
-
evalNodeSide(
DataInstance sourceInstance, EvaluationContext context, TreeReference child, int childIndex) → Object -
nodeSide for the
childIndex-th candidatechild, unpacked. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parse(
XPathExpression expression) → CompareToNodeExpression? -
expressionas a node comparison, if it is one.