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 SetallAssignableFrom(Class type) static ClassclassForPrimitive(String typeStr) static ClassclassForSimpleName(String simpleName, String[] importPkgs, String[] importClasses) static booleancontainsMethodAsSubtype(Class cl, Method m) static booleancontainsMethodAsSupertype(Class cl, Method m) static Classstatic Classstatic StringfqcnLastElement(String fqcn) static booleanhasAllMethodsAsSubtype(Class cl, Method[] methods) static booleanhasAllMethodsAsSupertype(Class cl, Method[] methods) static booleanisPrimitive(String typeStr) static booleanstatic SetpublicSupertypesForMethods(Class cl, Method[] methods) static StringresolvableTypeName(Class type, String[] importPkgs, String[] importClasses) static StringsimpleClassName(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
-