|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectserp.bytecode.NameCache
public class NameCache
Caching and conversion of names in both internal and external form.
| Constructor Summary | |
|---|---|
NameCache()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear the cache. |
String |
getComponentName(String name)
Return the component type name for the given array type, or null if the given string does not represent an array type name. |
String |
getDescriptor(String returnType,
String[] paramTypes)
Construct a method descriptor from the given return and parameter types, which will be converted to internal form. |
String[] |
getDescriptorParamNames(String descriptor)
Return the parameter types, in internal form, for the given method descriptor string. |
String |
getDescriptorReturnName(String descriptor)
Return the return type, in internal form, for the given method descriptor string. |
String |
getExternalForm(String internalName,
boolean humanReadable)
Given the internal name of the class, return the 'normal' java name. |
String |
getInternalForm(String className,
boolean descriptor)
Converts the given class name to its internal form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NameCache()
| Method Detail |
|---|
public String getInternalForm(String className,
boolean descriptor)
className - the name to convertdescriptor - true if the name is to be used for a descriptor
section -- the difference seems to be that for
descriptors, non-primitives are prefixed with 'L' and ended with ';'
public String getExternalForm(String internalName,
boolean humanReadable)
internalName - the internal name being usedhumanReadable - if the returned name should be in human-readable
form, rather than a form suitable for a
Class.forName(java.lang.String) call -- the difference
lies in the handling of arrays
public String getDescriptor(String returnType,
String[] paramTypes)
public String getDescriptorReturnName(String descriptor)
public String[] getDescriptorParamNames(String descriptor)
public String getComponentName(String name)
Class.forName(java.lang.String) form.
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||