Class DOMTreeNode

java.lang.Object
org.eclipse.lemminx.dom.DOMNode
org.eclipse.lemminx.dom.DOMTreeNode
All Implemented Interfaces:
DOMRange, Node
Direct Known Subclasses:
DOMCharacterData, DOMContainerNode

public abstract class DOMTreeNode extends DOMNode
Base class for DOM nodes that have a position range (start/end offsets) and flags in the parsed document. DOMAttr does not extend this class because it computes its own start/end from name/value offsets.
  • Constructor Details

    • DOMTreeNode

      public DOMTreeNode(int start, int end)
  • Method Details

    • getStart

      public int getStart()
      Description copied from interface: DOMRange
      Returns the start offset of the node.
      Specified by:
      getStart in interface DOMRange
      Overrides:
      getStart in class DOMNode
      Returns:
      the start offset of the node.
    • getEnd

      public int getEnd()
      Description copied from interface: DOMRange
      Returns the end offset of the node.
      Specified by:
      getEnd in interface DOMRange
      Overrides:
      getEnd in class DOMNode
      Returns:
      the end offset of the node.
    • isClosed

      public boolean isClosed()
      Overrides:
      isClosed in class DOMNode