org.scalajs.dom.raw

TreeWalker

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TreeWalker()

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

    The TreeWalker.

    The TreeWalker.currentNode property represents the Node on which the TreeWalker is currently pointing at.

    MDN

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

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

    Definition Classes
    AnyRef → Any
  11. def filter: NodeFilter

    The TreeWalker.

    The TreeWalker.filter read-only property returns a NodeFilter that is the filtering object associated with the TreeWalker.

    MDN

  12. def finalize(): Unit

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

    The TreeWalker.

    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

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

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

    Definition Classes
    Object
  16. def hashCode(): Int

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

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

    Definition Classes
    Object
  19. def lastChild(): Node

    The TreeWalker.

    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

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

    Definition Classes
    AnyRef
  21. def nextNode(): Node

    The TreeWalker.

    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

  22. def nextSibling(): Node

    The TreeWalker.

    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

  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. def parentNode(): Node

    The TreeWalker.

    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

  26. def previousNode(): Node

    The TreeWalker.

    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

  27. def previousSibling(): Node

    The TreeWalker.

    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

  28. def propertyIsEnumerable(v: String): Boolean

    Definition Classes
    Object
  29. def root: Node

    The TreeWalker.

    The TreeWalker.root read-only property returns the node that is the root of what the TreeWalker traverses.

    MDN

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

    Definition Classes
    AnyRef
  31. def toLocaleString(): String

    Definition Classes
    Object
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def valueOf(): Any

    Definition Classes
    Object
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. 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

Deprecated Value Members

  1. def expandEntityReferences: Boolean

    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