Class ParseNode

java.lang.Object
org.sonar.sslr.internal.matchers.ParseNode

public class ParseNode extends Object
Node of a parse tree.
  • Constructor Details

    • ParseNode

      public ParseNode(int startIndex, int endIndex, List<ParseNode> children, Matcher matcher)
    • ParseNode

      public ParseNode(int startIndex, int endIndex, Matcher matcher)
      Leaf node.
  • Method Details

    • getStartIndex

      public int getStartIndex()
    • getEndIndex

      public int getEndIndex()
      Be aware that element of input with this index is not included into this node.
    • getChildren

      public List<ParseNode> getChildren()
    • getMatcher

      public Matcher getMatcher()