Node class abstract

Abstract DOM node which can contain child nodes.

Implementers

Constructors

Node.new()

Properties

children List<Node>
Get a list of children belonging to this node. Do not modify this list directly -- use appendChild and removeChild instead.
no setter
hashCode int
The hash code for this object.
no setterinherited
parent Node?
Get this node's parent.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

appendChild(Node child) → void
Reparent child to this node.
findByAttribute(String attr, String value) TagNode?
Find a single child element (tag) by its name.
findByName(String name) TagNode?
Find a single child element (tag) by its name.
findManyByAttribute(String attr, String value) Iterable<TagNode>
Find all child elements with a name.
findManyByName(String name) Iterable<TagNode>
Find all child elements with a name.
findNode(dynamic builder(Query<Node>)) Node?
Find a single child node matching the query produced by builder.
findNodes(dynamic builder(Query<Node>)) Iterable<Node>
Find all child nodes matching the query produced by builder.
findTag(dynamic builder(TagQuery)) TagNode?
Find a single child element (tag) matching the query produced by builder.
findTags(dynamic builder(TagQuery)) Iterable<TagNode>
Find all child elements (tags) matching the query produced by builder.
innerSource([int level = 0]) String
Reconstruct this Node's inner source code (the source of its children.)
innerText() String
Get all raw text contained within this node.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
outerSource([int level = 0]) String
Reconstruct this Node's source code.
removeChild(Node child) → void
Remove child from this node's list of children. If this node is child's parent, child.parent will be set to null.
toString() String
A string representation of this object.
inherited

Operators

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