|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.compiler.tools.common.TokenReference
public class TokenReference
This class defines objets that hold a reference to a file and a position in the file.
Field Summary | |
---|---|
static TokenReference |
NO_REF
|
Constructor Summary | |
---|---|
TokenReference(String file,
int line)
Construct a file and line reference |
Method Summary | |
---|---|
static TokenReference |
build(String file,
int line)
Construct a line and file reference |
String |
getFile()
Returns the file name of reference |
int |
getLine()
Returns the line number of reference |
String |
getName()
Returns the name of reference (getFile().baseName()) |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static TokenReference NO_REF
Constructor Detail |
---|
public TokenReference(String file, int line)
file
- the file nameline
- the line numberMethod Detail |
---|
public static TokenReference build(String file, int line)
file
- the file nameline
- the line number
WARNING: DOES NOT LIKE MULTITHREADINGpublic final String getFile()
public final String getName()
public final int getLine()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |