|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.compiler.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 |
Object |
deepClone()
Returns a deep clone of this object. |
protected void |
deepCloneInto(TokenReference other)
Clones all fields of this into |
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 number| Method 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 Objectpublic Object deepClone()
deepClone in interface DeepCloneableprotected void deepCloneInto(TokenReference other)
other
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||