class TreeWalker extends Object
The TreeWalker object represents the nodes of a document subtree and a position within them.
A TreeWalker can be created using the Document.createTreeWalker() method.
MDN
- Annotations
- @RawJSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- TreeWalker
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TreeWalker()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- var currentNode: Node
The TreeWalker.currentNode property represents the Node on which the TreeWalker is currently pointing at.
The TreeWalker.currentNode property represents the Node on which the TreeWalker is currently pointing at.
MDN
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filter: NodeFilter
The TreeWalker.filter read-only property returns a NodeFilter that is the filtering object associated with the TreeWalker.
The TreeWalker.filter read-only property returns a NodeFilter that is the filtering object associated with the TreeWalker.
MDN
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def firstChild(): Node
The TreeWalker.firstChild() method moves the current Node to the first visible child of the current node, and returns the found child.
The TreeWalker.firstChild() method moves the current Node to the first visible child of the current node, and returns the found child. It also moves the current node to this child. If no such child exists, returns null and the current node is not changed.
MDN
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def lastChild(): Node
The TreeWalker.lastChild() method moves the current Node to the last visible child of the current node, and returns the found child.
The TreeWalker.lastChild() method moves the current Node to the last visible child of the current node, and returns the found child. It also moves the current node to this child. If no such child exists, returns null and the current node is not changed.
MDN
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nextNode(): Node
The TreeWalker.nextNode() method moves the current Node to the next visible node in the document order, and returns the found node.
The TreeWalker.nextNode() method moves the current Node to the next visible node in the document order, and returns the found node. It also moves the current node to this one. If no such node exists, returns null and the current node is not changed.
MDN
- def nextSibling(): Node
The TreeWalker.nextSibling() method moves the current Node to its next sibling, if any, and returns the found sibling.
The TreeWalker.nextSibling() method moves the current Node to its next sibling, if any, and returns the found sibling. I there is no such node, return null and the current node is not changed.
MDN
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parentNode(): Node
The TreeWalker.parentNode() method moves the current Node to the first visible ancestor node in the document order, and returns the found node.
The TreeWalker.parentNode() method moves the current Node to the first visible ancestor node in the document order, and returns the found node. It also moves the current node to this one. If no such node exists, or if it is before that the root node defined at the object construction, returns null and the current node is not changed.
MDN
- def previousNode(): Node
The TreeWalker.previousNode() method moves the current Node to the previous visible node in the document order, and returns the found node.
The TreeWalker.previousNode() method moves the current Node to the previous visible node in the document order, and returns the found node. It also moves the current node to this one. If no such node exists,or if it is before that the root node defined at the object construction, returns null and the current node is not changed.
MDN
- def previousSibling(): Node
The TreeWalker.previousSibling() method moves the current Node to its previous sibling, if any, and returns the found sibling.
The TreeWalker.previousSibling() method moves the current Node to its previous sibling, if any, and returns the found sibling. I there is no such node, return null and the current node is not changed.
MDN
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- def root: Node
The TreeWalker.root read-only property returns the node that is the root of what the TreeWalker traverses.
The TreeWalker.root read-only property returns the node that is the root of what the TreeWalker traverses.
MDN
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def whatToShow: Int
Returns an unsigned long being a bitmask made of constants describing the types of Node that must to be presented.
Returns an unsigned long being a bitmask made of constants describing the types of Node that must to be presented. Non-matching nodes are skipped, but their children may be included, if relevant.
MDN