|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dpt.symbtab.StringTable
Keeps track of all strings encountered in the file that represent identifiers. This way we only ever keep a single copy of a string and all symbols refer to it.
Field Summary | |
private java.util.Hashtable |
names
The hash table that holds all the strings. |
Constructor Summary | |
(package private) |
StringTable()
|
Method Summary | |
(package private) java.lang.String |
getName(java.lang.String name)
Get a name from the StringTable |
java.lang.String |
toString()
Write out that this is a string table... |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Hashtable names
Constructor Detail |
StringTable()
Method Detail |
java.lang.String getName(java.lang.String name)
public java.lang.String toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |