XPathMap class final

Represents an XDM 3.1 map item (map(*)).

Inheritance

Constructors

XPathMap([Map<XPathAtomic, XPathSequence> entries = const {}])
Creates a map item with entries.
const

Properties

arity → int
The arity (number of required arguments) of the function item.
no setteroverride
effectiveBooleanValue → bool
The effective boolean value (EBV) of this item.
no setterinherited
entries → Map<XPathAtomic, XPathSequence>
Key-value map entries where values are sequences.
final
hashCode → int
The hash code for this object.
no setteroverride
isEmpty → bool
Whether this map contains no entries.
no setter
isNotEmpty → bool
Whether this map contains at least one entry.
no setter
isVariadic → bool
Whether this function accepts variable arguments (at least arity).
no setterinherited
keys → Iterable<XPathAtomic>
The keys of this map.
no setter
length → int
The number of entries in the map.
no setter
name → XmlName
The name of the function, if named.
no setterinherited
parameterTypes → List<XPathType>?
The parameter types of the function, if statically known.
no setterinherited
returnType → XPathType?
The return type of the function, if statically known.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringValue → String
Canonical string representation of this item.
no setterinherited
type → XPathType
The XDM type of this item.
no setteroverride

Methods

atomize() → XPathAtomic
Atomizes this item into an XPathAtomic value.
inherited
call(XPathContext context, List<XPathSequence> arguments) → XPathSequence
Invokes the function item with the given arguments.
override
get(XPathAtomic key) → XPathSequence?
Returns the sequence associated with key, or null if not found.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
toValue() → Map<Object, Object?>
Converts this item to a native Dart value.
override

Operators

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

Static Methods

sameKey(XPathAtomic a, XPathAtomic b) → bool

Constants

empty → const XPathMap
The canonical empty map.