public class StringTable extends Object implements Iterable<StringEntry>
| Constructor and Description |
|---|
StringTable() |
| Modifier and Type | Method and Description |
|---|---|
int |
debugStringIndex(String string)
Retrieves the offset at which a given string was written into the debug_str section.
|
Iterator<StringEntry> |
iterator() |
String |
uniqueDebugString(String string)
Ensures a unique instance of a string exists in the table and is marked for inclusion in the
debug_str section, inserting the supplied String if no equivalent String is already present.
|
String |
uniqueString(String string)
Ensures a unique instance of a string exists in the table, inserting the supplied String if
no equivalent String is already present.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic String uniqueString(String string)
string - the string to be included in the tablepublic String uniqueDebugString(String string)
string - the string to be included in the table and marked for inclusion in the
debug_str sectionpublic int debugStringIndex(String string)
string - the strng whose offset is to be retrievedpublic Iterator<StringEntry> iterator()
iterator in interface Iterable<StringEntry>