|
antlraux package v0.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--antlraux.util.CommonLexInfo
This is a class that completely implements interface
LexInfo. Use it as a base class to implement
LexInfo directly.
| Field Summary | |
protected int |
column
column information |
protected java.lang.String |
filename
filename information |
protected int |
line
line information |
| Constructor Summary | |
CommonLexInfo()
|
|
CommonLexInfo(LexInfo other)
|
|
CommonLexInfo(java.lang.String filename,
int line,
int column)
|
|
| Method Summary | |
void |
copyLexInfo(LexInfo from)
Copies the lexical information from other LexInfo |
int |
getColumn()
Get the column for this node |
java.lang.String |
getFilename()
Get the file name for this node |
java.lang.String |
getLexInfoString()
Returns true if all the information (Filename:line:column) is valid; false otherwise. |
int |
getLine()
Get the line for this node |
void |
setColumn(int column)
Set the column for this node |
void |
setFilename(java.lang.String fn)
Sets the file name for this node. |
void |
setLine(int line)
Set the line for this node |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int line
protected int column
protected java.lang.String filename
| Constructor Detail |
public CommonLexInfo()
public CommonLexInfo(java.lang.String filename,
int line,
int column)
public CommonLexInfo(LexInfo other)
| Method Detail |
public java.lang.String getFilename()
public int getColumn()
public int getLine()
public void setFilename(java.lang.String fn)
public void setColumn(int column)
public void setLine(int line)
public void copyLexInfo(LexInfo from)
public java.lang.String getLexInfoString()
FileLineFormatter, which authomatically
deals with incompleteness in the information.
|
antlraux package v0.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||