|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.anarres.cpp.ErrorMessage
public class ErrorMessage
Constructor Summary | |
---|---|
ErrorMessage(Source source,
int line,
int column,
boolean error,
String msg)
|
|
ErrorMessage(Source source,
Token postok,
boolean error,
String msg)
|
Method Summary | |
---|---|
int |
getColumn()
Returns the column number at which this error occurred. |
int |
getLine()
Returns the line number at which this error occurred. |
String |
getMessage()
Returns the error message itself. |
String |
getSource()
Returns a text description of the file or other location in which this error occurred. |
String |
toString()
Returns a user-readable version of this ErrorMessage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ErrorMessage(Source source, int line, int column, boolean error, String msg)
error
- true if an error, false if a warning.public ErrorMessage(Source source, Token postok, boolean error, String msg)
postok
- The token at the error location.error
- true if an error, false if a warning.Method Detail |
---|
public String getSource()
StringLexerSource.toString()
,
FileLexerSource.toString()
public int getLine()
public int getColumn()
public String getMessage()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |