NodeQuery class
Query that only affects all nodes.
Constructors
Properties
-
conditions
↔ List<
bool Function(Node)> -
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
and(
Query< Node> q2) → NodeQuery -
Require that
q2
also matches. -
findAll(
Node root) → Iterable< Node> -
Find multiple nodes matching this query inside another node.
inherited
-
findOne(
Node root) → Node? -
Find one node matching this query inside another node.
inherited
-
hasChildren(
) → NodeQuery - Match only elements with children.
-
hasChildWhere(
dynamic builder(NodeQuery)) → NodeQuery -
Match only elements with at least one child matching the query produced by
builder
. -
hasNoChildren(
) → NodeQuery - Match only elements without children.
-
hasNoChildWhere(
dynamic builder(NodeQuery)) → NodeQuery -
Match only elements with no children matching the query produced by
builder
. -
matches(
Node candidate) → bool -
Check if this query matches a node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
or(
Query< Node> q2) → NodeQuery -
Require that either this or
q2
matches. -
toString(
) → String -
A string representation of this object.
inherited
-
where(
bool predicate(Node)) → NodeQuery
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited