Package com.mchange.v1.lang
Class ClassUtils
java.lang.Object
com.mchange.v1.lang.ClassUtils
See also com.mchange.v2.codegen.ClassUtils for related methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set
allAssignableFrom
(Class type) static Class
classForPrimitive
(String typeStr) static Class
classForSimpleName
(String simpleName, String[] importPkgs, String[] importClasses) static boolean
containsMethodAsSubtype
(Class cl, Method m) static boolean
containsMethodAsSupertype
(Class cl, Method m) static Class
static Class
static String
fqcnLastElement
(String fqcn) static boolean
hasAllMethodsAsSubtype
(Class cl, Method[] methods) static boolean
hasAllMethodsAsSupertype
(Class cl, Method[] methods) static boolean
isPrimitive
(String typeStr) static boolean
static Set
publicSupertypesForMethods
(Class cl, Method[] methods) static String
resolvableTypeName
(Class type, String[] importPkgs, String[] importClasses) static String
simpleClassName
(Class cl)
-
Method Details
-
publicSupertypesForMethods
-
isPublic
-
hasAllMethodsAsSupertype
-
hasAllMethodsAsSubtype
-
containsMethodAsSupertype
-
containsMethodAsSubtype
-
allAssignableFrom
-
simpleClassName
-
isPrimitive
-
classForPrimitive
-
forName
- Throws:
ClassNotFoundException
-
forName
public static Class forName(String fqOrSimple, String[] importPkgs, String[] importClasses) throws AmbiguousClassNameException, ClassNotFoundException -
classForSimpleName
public static Class classForSimpleName(String simpleName, String[] importPkgs, String[] importClasses) throws AmbiguousClassNameException, ClassNotFoundException -
resolvableTypeName
public static String resolvableTypeName(Class type, String[] importPkgs, String[] importClasses) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
fqcnLastElement
-