NodeFilter class

A interface represents an object used to filter the nodes in a NodeIterator or TreeWalker. A knows nothing about the document or traversing nodes; it only knows how to evaluate a single node against the provided filter.

Note: The browser doesn't provide any object implementing this interface. It is the user who is expected to write one, tailoring the acceptNode() method to its needs, and using it with some TreeWalker or NodeIterator objects.

Available Extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

NodeFilter()
factory

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

filterAccept int
no setter
filterReject int
no setter
filterSkip int
no setter
showAll int
no setter
showAttribute int
no setter
showCdataSection int
no setter
showComment int
no setter
showDocument int
no setter
showDocumentFragment int
no setter
showDocumentType int
no setter
showElement int
no setter
showEntity int
no setter
showEntityReference int
no setter
showNotation int
no setter
showProcessingInstruction int
no setter
showText int
no setter