|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsymbolHandling.AbstractSymbol
public abstract class AbstractSymbol
String table entry There are three kinds of string table entries:
codeDef and codeRef (defined by subclasses) are used by the code to produce definitions and references (respectively) to constants.
AbstractTable| Field Summary | |
|---|---|
protected int |
index
The index of this entry in the string table |
protected java.lang.String |
str
The stored string |
| Constructor Summary | |
|---|---|
AbstractSymbol(java.lang.String str,
int len,
int index)
Constructs a new table entry. |
|
| Method Summary | |
|---|---|
abstract 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 AbstractSymbol(java.lang.String str,
int len,
int index)
str - the entry stringlen - the length of the str prefix that is acually usedindex - the table index| Method Detail |
|---|
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)
equals in class java.lang.Objectanother - the other symbol
public java.lang.String getString()
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||