Java Utililty Methods Class Name Convert To

List of utility methods to do Class Name Convert To

Description

The list of methods to do Class Name Convert To are organized into topic(s).

Method

StringclassNameToPath(final String className)
Convert a class name into a path
if (className == null)
    throw new IllegalArgumentException("Null className");
return className.replace('.', '/') + ".class";
StringclassNameToPath(String className)
class Name To Path
return className.replace('.', '/') + ".class";
StringclassNameToResource(String className)
Return the resource name of a class name.
return className.replace('.', '/') + ".class";
StringclassNameToResource(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";
StringclassNameToResourceKey(String name)
class Name To Resource Key
return name.replaceAll("\\B([A-Z])", "_$1").toLowerCase() + "s";
StringclassNameToResourceName(String clsName)
Gets resource path for the class.
return clsName.replaceAll("\\.", "/") + ".class";
StringclassNameToWrapperName(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);