|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.classloader.Atom.InternedStrings
private static class Atom.InternedStrings
Inner class responsible for string interning. This class' initializer is run during booting.
Field Summary | |
---|---|
private static WeakHashMap<String,WeakReference<String>> |
internedStrings
Look up for interned strings. |
Constructor Summary | |
---|---|
private |
Atom.InternedStrings()
|
Method Summary | |
---|---|
(package private) static String |
findAtomString(String str)
Find a string literal from an atom |
(package private) static String |
findInternedString(String str)
Find an interned string but don't create it if not found |
(package private) static String |
internUnfoundString(String str)
Intern a string that is not an atom or already interned string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final WeakHashMap<String,WeakReference<String>> internedStrings
Constructor Detail |
---|
private Atom.InternedStrings()
Method Detail |
---|
static String findInternedString(String str)
str
- string to lookup
static String findAtomString(String str)
str
- string to find
static String internUnfoundString(String str)
str
- string to intern
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |