/** * Converts the given class name to its internal form. * * @param className the name to convert * @param descriptor 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 getInternalForm(String className, boolean descriptor) { if (className == null || className.length() == 0) return className; Map cache = (descriptor) ? _internalDescriptor : _internal; String cached = (String) cache.get(className); if (cached != null) return cached; String ret = getInternalFormInternal(className, descriptor); cache.put(className, ret); return ret; }
/** * Converts the given class name to its internal form. * * @param className the name to convert * @param descriptor 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 getInternalForm(String className, boolean descriptor) { if (className == null || className.length() == 0) return className; Map cache = (descriptor) ? _internalDescriptor : _internal; String cached = (String) cache.get(className); if (cached != null) return cached; String ret = getInternalFormInternal(className, descriptor); cache.put(className, ret); return ret; }