java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.RNCNode
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.RNCStart
All Implemented Interfaces:
RNCRange

public class RNCStart extends RNCNode
  • Constructor Details

    • RNCStart

      public RNCStart(int start, int end)
      Creates a new start node spanning the given offsets.
      Parameters:
      start - the inclusive start offset (the start keyword).
      end - the exclusive end offset.
  • Method Details

    • getNodeType

      public RNCNodeType getNodeType()
      Specified by:
      getNodeType in class RNCNode
    • getAssignType

      public RNCAssignType getAssignType()
      Returns the assignment operator type used in this start declaration.
      Returns:
      the RNCAssignType.
    • setAssignType

      public void setAssignType(RNCAssignType assignType)
      Sets the assignment operator type for this start declaration.
      Parameters:
      assignType - the assignment type parsed from the source.
    • getText

      public String getText()
      Description copied from class: RNCNode
      Returns the source text spanned by this node.
      Overrides:
      getText in class RNCNode
      Returns:
      the text from RNCNode.getStart() to RNCNode.getEnd(), or null if this node is not attached to a document.