|
antlraux package v0.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--antlr.ANTLRException | +--antlr.RecognitionException | +--antlraux.util.LexInfoException
This is a version of RecognitionException
that
implements LexInfo
Field Summary |
Fields inherited from class antlr.RecognitionException |
column, fileName, line |
Fields inherited from interface antlraux.util.LexInfo |
DEFAULT_COLUMN, DEFAULT_FILENAME, DEFAULT_LINE |
Constructor Summary | |
LexInfoException()
|
|
LexInfoException(java.lang.String s)
|
|
LexInfoException(java.lang.String s,
LexInfo li)
|
|
LexInfoException(java.lang.String s,
java.lang.String fileName,
int line,
int column)
|
Method Summary | |
void |
copyLexInfo(LexInfo li)
Copies the lexical information from other LexInfo. |
java.lang.String |
getLexInfoString()
Returns true if all the information (Filename:line:column) is valid; false otherwise. |
void |
setColumn(int c)
Set the column for this node |
void |
setFilename(java.lang.String s)
Sets the file name for this node. |
void |
setLine(int l)
Set the line for this node |
Methods inherited from class antlr.RecognitionException |
getColumn, getErrorMessage, getFilename, getLine, toString |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface antlraux.util.LexInfo |
getColumn, getFilename, getLine |
Constructor Detail |
public LexInfoException()
public LexInfoException(java.lang.String s)
public LexInfoException(java.lang.String s, java.lang.String fileName, int line, int column)
public LexInfoException(java.lang.String s, LexInfo li)
Method Detail |
public void copyLexInfo(LexInfo li)
LexInfo
copyLexInfo
in interface LexInfo
public java.lang.String getLexInfoString()
LexInfo
FileLineFormatter
, which authomatically
deals with incompleteness in the information.
getLexInfoString
in interface LexInfo
public void setFilename(java.lang.String s)
LexInfo
setFilename
in interface LexInfo
public void setLine(int l)
LexInfo
setLine
in interface LexInfo
public void setColumn(int c)
LexInfo
setColumn
in interface LexInfo
|
antlraux package v0.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |