|
antlraux package v0.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a class that stores lexical information, this is, a filename, a line and a column. This interface does not requiere nor guaranties "completeness" in lexical information; filename may be null, and line and column may be -1.
Field Summary | |
static int |
DEFAULT_COLUMN
Provides a safe default column value (-1) |
static java.lang.String |
DEFAULT_FILENAME
Provides a safe default file name (null) |
static int |
DEFAULT_LINE
Provides a safe default line value (-1) |
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 |
Field Detail |
public static final int DEFAULT_LINE
public static final int DEFAULT_COLUMN
public static final java.lang.String DEFAULT_FILENAME
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 |