org.waxeye.ast
Class Position

java.lang.Object
  extended by org.waxeye.ast.Position

public final class Position
extends java.lang.Object

The position of an AST relative to the input.

Author:
Orlando Hill

Constructor Summary
Position(int startIndex, int endIndex)
          Creates a new Position.
 
Method Summary
 int getEndIndex()
          Returns the endIndex.
 int getStartIndex()
          Returns the startIndex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Position

public Position(int startIndex,
                int endIndex)
Creates a new Position.

Parameters:
startIndex - The start index of the AST position.
endIndex - The end index of the AST position.
Method Detail

getStartIndex

public int getStartIndex()
Returns the startIndex.

Returns:
Returns the startIndex.

getEndIndex

public int getEndIndex()
Returns the endIndex.

Returns:
Returns the endIndex.


Waxeye Parser Generator