org.sonar.sslr.internal.matchers
Class ParseNode

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

public class ParseNode
extends Object

Node of a parse tree.


Constructor Summary
ParseNode(int startIndex, int endIndex, List<ParseNode> children, Matcher matcher)
           
ParseNode(int startIndex, int endIndex, Matcher matcher)
          Leaf node.
 
Method Summary
 List<ParseNode> getChildren()
           
 int getEndIndex()
          Be aware that element of input with this index is not included into this node.
 Matcher getMatcher()
           
 int getStartIndex()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseNode

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

ParseNode

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

Method Detail

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()


Copyright © 2009-2014 SonarSource. All Rights Reserved.