XPathVariableReference class final

A variable reference such as $name.

Inheritance

Constructors

XPathVariableReference(XPathQName id)
Creates a reference to the variable id.
const

Properties

hashCode → int
Hash of toString, as in JavaRosa.
no setterinherited
id → XPathQName
The variable's name.
final
isIdempotent → bool
Whether evaluating this expression twice in the same form state always gives the same result (used to cache predicate results).
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

containsFunc(String name) → bool
Whether this expression calls the function named name anywhere.
override
eval(DataInstance? model, EvaluationContext context) → Object
JavaRosa returns null for an undefined variable, which later fails in a type conversion; DartRosa reports it directly (see DEVIATIONS.md).
override
evalIn(EvaluationContext context) → Object
Evaluates against context's main instance.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pivot(DataInstance? model, EvaluationContext context, List<Object> pivots, Object sentinel) → Object?
Pivots this expression around sentinel (the validated node's reference), adding CmpPivots to pivots.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
Structural equality, matching JavaRosa's equals.
inherited