TagQuery class
Specialized query that only affects elements.
Constructors
- TagQuery()
Properties
-
conditions
↔ List<
bool Function(TagNode)> -
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(
NodeQuery q2) → TagQuery -
Require that
q2also matches. -
attributeIs(
String attr, String value) → TagQuery -
Require that matched nodes have attribute
attrwith valuevalue. -
attributeMatches(
String attr, RegExp pattern) → TagQuery -
Require that matched nodes have attribute
attrwith a value matchingpattern. -
findAll(
Node root) → Iterable< TagNode> -
Find multiple nodes matching this query inside another node.
inherited
-
findOne(
Node root) → TagNode? -
Find one node matching this query inside another node.
inherited
-
hasAttribute(
String attr) → TagQuery -
Require that matched nodes have the attribute
attr. -
hasChildren(
) → TagQuery - Match only elements with children.
-
hasChildWhere(
dynamic builder(TagQuery)) → TagQuery -
Match only elements with at least one child matching the query produced by
builder. -
hasNoChildren(
) → TagQuery - Match only elements without children.
-
hasNoChildWhere(
dynamic builder(TagQuery)) → TagQuery -
Match only elements with no children matching the query produced by
builder. -
matches(
TagNode candidate) → bool -
Check if this query matches a node.
inherited
-
nameIs(
String name) → TagQuery -
Require that matched nodes have the name
name. -
nameMatches(
RegExp pattern) → TagQuery -
Require that matched nodes have a name matching
pattern. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
or(
NodeQuery q2) → TagQuery -
Require that either this or
q2matches. -
toString(
) → String -
A string representation of this object.
inherited
-
where(
bool predicate(TagNode)) → TagQuery
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited