com.mchange.v1.lang
Class ClassUtils
java.lang.Object
com.mchange.v1.lang.ClassUtils
public final class ClassUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allAssignableFrom
public static Set allAssignableFrom(Class type)
simpleClassName
public static String simpleClassName(Class cl)
isPrimitive
public static boolean isPrimitive(String typeStr)
classForPrimitive
public static Class classForPrimitive(String typeStr)
forName
public static Class forName(String fqcnOrPrimitive)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
forName
public static Class forName(String fqOrSimple,
String[] importPkgs,
String[] importClasses)
throws AmbiguousClassNameException,
ClassNotFoundException
- Throws:
AmbiguousClassNameException
ClassNotFoundException
classForSimpleName
public static Class classForSimpleName(String simpleName,
String[] importPkgs,
String[] importClasses)
throws AmbiguousClassNameException,
ClassNotFoundException
- Throws:
AmbiguousClassNameException
ClassNotFoundException
resolvableTypeName
public static String resolvableTypeName(Class type,
String[] importPkgs,
String[] importClasses)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
fqcnLastElement
public static String fqcnLastElement(String fqcn)