Class

org.scalajs.dom.raw

TreeWalker

Related Doc: package raw

Permalink

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()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TreeWalker
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TreeWalker()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. var currentNode: Node

    Permalink

    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

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def filter: NodeFilter

    Permalink

    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

  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def firstChild(): Node

    Permalink

    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

  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  17. def lastChild(): Node

    Permalink

    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

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def nextNode(): Node

    Permalink

    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

  20. def nextSibling(): Node

    Permalink

    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

  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def parentNode(): Node

    Permalink

    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

  24. def previousNode(): Node

    Permalink

    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

  25. def previousSibling(): Node

    Permalink

    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

  26. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  27. def root: Node

    Permalink

    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

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def whatToShow: Int

    Permalink

    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

Deprecated Value Members

  1. def expandEntityReferences: Boolean

    Permalink

    The TreeWalker.expandEntityReferences read-only property returns a Boolean flag indicating whether or not the children of entity reference nodes are visible to the TreeWalker.

    The TreeWalker.expandEntityReferences read-only property returns a Boolean flag indicating whether or not the children of entity reference nodes are visible to the TreeWalker.

    MDN

    Annotations
    @deprecated
    Deprecated

    (Since version WHATWG DOM) Obsolete.

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped