List of utility methods to do Class Name Convert To
String | classNameToPath(final String className) Convert a class name into a path if (className == null) throw new IllegalArgumentException("Null className"); return className.replace('.', '/') + ".class"; |
String | classNameToPath(String className) class Name To Path return className.replace('.', '/') + ".class"; |
String | classNameToResource(String className) Return the resource name of a class name. return className.replace('.', '/') + ".class"; |
String | classNameToResource(String className) Will convert a class name to its class loader resource name (e.g org.objenesis.EmptyClass becomes org/objenesis/EmptyClass.class ) return classNameToInternalClassName(className) + ".class"; |
String | classNameToResourceKey(String name) class Name To Resource Key return name.replaceAll("\\B([A-Z])", "_$1").toLowerCase() + "s"; |
String | classNameToResourceName(String clsName) Gets resource path for the class. return clsName.replaceAll("\\.", "/") + ".class"; |
String | classNameToWrapperName(String ClassName) convert the input class to a wrapper class returns in if the argument is not primitive for (int i = 0; i < gPrimativeTypes.length; i++) { if (ClassName.equals(gPrimativeTypes[i])) { return (gWrapperTypes[i]); return (ClassName); |