public final class ClassUtils extends Object
determineQualifiedName(String)
is equivalent in format to the result of Class.getName()
Modifier and Type | Field and Description |
---|---|
static char |
INNER_CLASS_SEPARATOR_CHAR |
static char |
PACKAGE_SEPARATOR_CHARACTER |
Modifier and Type | Method and Description |
---|---|
static String |
determineQualifiedName(String className)
Given a readable class name determine the JVM Qualified Name
|
static String |
determineReadableClassName(String qualifiedName)
Given a JVM Qualified Name produce a readable classname
|
static Class<?> |
getClass(ClassLoader classLoader,
String className)
Attempt to load the class matching the given qualified name
|
static Class<?> |
getClass(String qualifiedName)
Attempt to load the class matching the given qualified name.
|
public static final char PACKAGE_SEPARATOR_CHARACTER
public static final char INNER_CLASS_SEPARATOR_CHAR
public static Class<?> getClass(String qualifiedName)
qualifiedName
- The qualified name to useClass
representing the given classIllegalArgumentException
- If the class cannot be loadedpublic static Class<?> getClass(ClassLoader classLoader, String className)
classLoader
- Classloader to useclassName
- The classname to useClass
representing the given classIllegalArgumentException
- If the class cannot be loadedpublic static String determineQualifiedName(String className)
className
- The name to convertpublic static String determineReadableClassName(String qualifiedName)
qualifiedName
- The Qualified NameCopyright © 2010–2018 Jadira Systems. All rights reserved.