|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractSymbol
IdSymbol
String table entry for identifiers.
Field Summary | |
protected int |
index
The index of this entry in the string table |
protected java.lang.String |
str
The stored string |
Constructor Summary | |
IdSymbol(java.lang.String str,
int len,
int index)
|
Method Summary | |
java.lang.Object |
clone()
Returns a copy of this symbol |
boolean |
equals(java.lang.Object another)
Tests if two symbols are equal. |
boolean |
equalsIndex(int index)
Tests if the index argument is equal to the index of this symbol. |
boolean |
equalString(java.lang.String str,
int len)
Tests if the string argument is equal to the string in this symbol. |
java.lang.String |
getString()
Returns the string representation of this symbol. |
java.lang.String |
toString()
Returns a printable representation of this symbol. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String str
protected int index
Constructor Detail |
public IdSymbol(java.lang.String str, int len, int index)
Method Detail |
public java.lang.Object clone()
clone
in class AbstractSymbol
public boolean equalString(java.lang.String str, int len)
str
- the string to compare
public boolean equalsIndex(int index)
index
- the index to compare
public boolean equals(java.lang.Object another)
another
- the other symbol
public java.lang.String getString()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |