XPathFunctionHandler class abstract

A custom XPath function, such as ODK Collect's pulldata.

Port of org.javarosa.core.model.condition.IFunctionHandler. Arguments are matched against prototypes in order and converted to the declared types; if none matches and rawArgs is set, the unconverted arguments are passed instead.

Constructors

XPathFunctionHandler()
Creates a function handler.

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
The function name as written in XPath, e.g. pulldata.
no setter
prototypes → List<List<XPathArgType>>
Accepted argument lists.
no setter
rawArgs → bool
Whether to receive unconverted arguments when no prototype matches.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

eval(List<Object> args, EvaluationContext context) → Object
Evaluates the function. Must return a bool, double, String, DateTime or XPathNodeset, never null.
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