NodeParser<T extends TagflowNode> class abstract

Parses one kind of DOM node for the legacy TagflowParser.

Implementers

Constructors

NodeParser()
Creates a node parser.
const

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

canHandle(Node node) → bool
Whether this parser handles node.
isPreformatted(Node node) → bool
Whether node sits inside a <pre> element, where the HTML specification preserves whitespace.
normalizeWhitespace(String text) → String
Collapses runs of spaces and tabs in text, keeping newlines.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseAttributes(Element element) → Map<String, String>
The attributes of element, with style and class normalized.
parseChildren(Element element, TagflowParser parser) → List<TagflowNode>
Parses the children of element.
toString() → String
A string representation of this object.
inherited
tryParse(Node node, TagflowParser parser) → T?
Parses node, or returns null.

Operators

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