net.sourceforge.nrl.parser
Class SemanticError

java.lang.Object
  extended by net.sourceforge.nrl.parser.NRLError
      extended by net.sourceforge.nrl.parser.SemanticError

public class SemanticError
extends NRLError

A semantic error that occurred during AST creation or AST resolution. Always has a message and a line number. Can optionally return a column number and length in the input text related to the error (or line 1 column 0 if this information is not available).

Lines are numbered from 1, not from 0. Columns are numbered from 0.


Constructor Summary
SemanticError(int statusCode, int line, int column, int length, String message)
           
SemanticError(int statusCode, int line, int column, String message)
           
SemanticError(String message)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class net.sourceforge.nrl.parser.NRLError
getColumn, getLength, getLine, getMessage, getStatusCode, setColumn, setLength, setLine, setMessage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SemanticError

public SemanticError(int statusCode,
                     int line,
                     int column,
                     String message)

SemanticError

public SemanticError(int statusCode,
                     int line,
                     int column,
                     int length,
                     String message)

SemanticError

public SemanticError(String message)
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2010 Christian Nentwich and others