XPathEqExpr class final
a = b (when equal) or a != b.
- Inheritance
-
- Object
- XPathExpression
- XPathBinaryOpExpr
- XPathEqExpr
Constructors
- XPathEqExpr(bool equal, XPathExpression a, XPathExpression b)
-
Creates an equality (
equaltrue) or inequality test.const
Properties
- a → XPathExpression
-
Left operand.
finalinherited
- b → XPathExpression
-
Right operand.
finalinherited
- equal → bool
-
truefor=,falsefor!=.final - hashCode → int
-
Hash of toString, as in JavaRosa.
no setterinherited
- isIdempotent → bool
-
Whether evaluating this expression twice in the same form state always
gives the same result (used to cache predicate results).
no setterinherited
- 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
nameanywhere.inherited -
eval(
DataInstance? model, EvaluationContext context) → Object -
Compares as booleans if either side is a boolean, else as numbers
(within 1e-12) if either is a number, else as strings.
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 topivots.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Structural equality, matching JavaRosa's
equals.inherited