org.waxeye.parser
Class ParseError

java.lang.Object
  extended by org.waxeye.parser.ParseError

public final class ParseError
extends java.lang.Object

An error that occurred during parsing.

Author:
Orlando Hill

Constructor Summary
ParseError(int position, int line, int column, java.lang.String nt)
          Creates a new ParseError.
 
Method Summary
 int getColumn()
          Returns the column.
 int getLine()
          Returns the line.
 java.lang.String getNT()
          Returns the nt.
 int getPosition()
          Returns the position.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseError

public ParseError(int position,
                  int line,
                  int column,
                  java.lang.String nt)
Creates a new ParseError.

Parameters:
position - The position of the error.
line - The line of the error.
column - The column of the error.
nt - The non-terminal being matched when the error occured.
Method Detail

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

getPosition

public int getPosition()
Returns the position.

Returns:
Returns the position.

getLine

public int getLine()
Returns the line.

Returns:
Returns the line.

getColumn

public int getColumn()
Returns the column.

Returns:
Returns the column.

getNT

public java.lang.String getNT()
Returns the nt.

Returns:
Returns the nt.


Waxeye Parser Generator