RecognitionExceptionpublic class RecognitionException extends ANTLRException
Fields Summary |
---|
public String | fileName | public int | line | public int | column |
Constructors Summary |
---|
public RecognitionException()
super("parsing error");
fileName = null;
line = -1;
column = -1;
| public RecognitionException(String s)RecognitionException constructor comment.
super(s);
fileName = null;
line = -1;
column = -1;
| public RecognitionException(String s, String fileName_, int line_)
this(s, fileName_, line_, -1);
| public RecognitionException(String s, String fileName_, int line_, int column_)RecognitionException constructor comment.
super(s);
fileName = fileName_;
line = line_;
column = column_;
|
Methods Summary |
---|
public int | getColumn()
return column;
| public java.lang.String | getErrorMessage()
return getMessage();
| public java.lang.String | getFilename()
return fileName;
| public int | getLine()
return line;
| public java.lang.String | toString()
return FileLineFormatter.getFormatter().
getFormatString(fileName, line, column) + getMessage();
|
|