Package org.jvnet.jaxb.annox.util
Class ClassUtils
- java.lang.Object
-
- org.jvnet.jaxb.annox.util.ClassUtils
-
public class ClassUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringARRAY_SUFFIXstatic Class<?>[]EMPTY_CLASS_ARRAYstatic charINNER_CLASS_SEPARATOR_CHARThe inner class separator character:'$' == {@value}.static charPACKAGE_SEPARATOR_CHARThe package separator character:'.' == {@value}.
-
Constructor Summary
Constructors Constructor Description ClassUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>forName(String className)static Class<?>forName(String className, boolean initialize, ClassLoader loader)static Class<?>[]forNames(String names)static Class<?>[]forNames(String names, boolean initialize, ClassLoader loader)static Class<?>getArrayClass(Class<?> componentClass)static Class<?>getClass(ClassLoader classLoader, String className)static Class<?>getClass(String className)static ClassnameToPrimitive(String name)static ClassprimitiveToWrapper(Class cls)static ClasswrapperArrayToPrimitiveArray(Class cls)static ClasswrapperToPrimitive(Class cls)
-
-
-
Field Detail
-
PACKAGE_SEPARATOR_CHAR
public static final char PACKAGE_SEPARATOR_CHAR
The package separator character:'.' == {@value}.- See Also:
- Constant Field Values
-
INNER_CLASS_SEPARATOR_CHAR
public static final char INNER_CLASS_SEPARATOR_CHAR
The inner class separator character:'$' == {@value}.- See Also:
- Constant Field Values
-
ARRAY_SUFFIX
public static final String ARRAY_SUFFIX
- See Also:
- Constant Field Values
-
EMPTY_CLASS_ARRAY
public static final Class<?>[] EMPTY_CLASS_ARRAY
-
-
Method Detail
-
forName
public static Class<?> forName(String className) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
forName
public static Class<?> forName(String className, boolean initialize, ClassLoader loader) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
forNames
public static Class<?>[] forNames(String names) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
forNames
public static Class<?>[] forNames(String names, boolean initialize, ClassLoader loader) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getClass
public static Class<?> getClass(String className) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
getClass
public static Class<?> getClass(ClassLoader classLoader, String className) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
-