XPathArgType class final

An argument type a XPathFunctionHandler prototype can declare.

Port of the Class entries of JavaRosa prototypes: boolean, number, string and date arguments are converted when needed; other types (including custom ones from XPathArgType.ofType) must match as they are.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

accepts(Object value) → bool
Whether value already has this type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

ofType<T extends Object>() → XPathArgType
A custom type: matches values that are a T.

Constants

any → const XPathArgType
Any value, passed unchanged.
boolean → const XPathArgType
Converted with XPath boolean() if needed.
date → const XPathArgType
Converted with date() if needed (a DateTime).
number → const XPathArgType
Converted with XPath number() if needed (a double).
string → const XPathArgType
Converted with XPath string() if needed.