XPathFuncExpr class final
A function call such as concat(a, 'b').
- Inheritance
-
- Object
- XPathExpression
- XPathFuncExpr
Constructors
-
XPathFuncExpr(XPathQName id, List<
XPathExpression> args) -
Creates a call to
idwithargs.
Properties
-
args
→ List<
XPathExpression> -
The arguments, in order.
final
- hashCode → int
-
Hash of toString, as in JavaRosa.
no setterinherited
- id → XPathQName
-
The function 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
nameanywhere.override -
eval(
DataInstance? model, EvaluationContext context) → Object -
Evaluates against
model(usually the context's main instance) incontext. The result is abool,double,String,DateTime, XPathNodeset or a value returned by a custom function.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? -
Only
string-lengthpasses the node through (as an identity); any other function of the node is unpivotable.override -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
Structural equality, matching JavaRosa's
equals.inherited