|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectAbstractSymbol
IntSymbol
String table entry for integer constants
AbstractSymbol| Field Summary | |
protected int |
index
The index of this entry in the string table |
protected java.lang.String |
str
The stored string |
| Constructor Summary | |
IntSymbol(java.lang.String str,
int len,
int index)
|
|
| Method Summary | |
java.lang.Object |
clone()
Returns a copy of this symbol |
void |
codeDef(int intclasstag,
java.io.PrintStream s)
Generates code for the integer constant definition. |
void |
codeRef(java.io.PrintStream s)
Emits a reference to this integer constant. |
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 IntSymbol(java.lang.String str,
int len,
int index)
| Method Detail |
public void codeDef(int intclasstag,
java.io.PrintStream s)
intclasstag - the class tag for string objects - the output streampublic void codeRef(java.io.PrintStream s)
s - the output streampublic 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 | ||||||||||