public final class ClassUtils extends Object
Modifier and Type | Method and Description |
---|---|
static 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 |
forName(String fqcnOrPrimitive) |
static Class |
forName(String fqOrSimple,
String[] importPkgs,
String[] importClasses) |
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 |
isPublic(Class cl) |
static Set |
publicSupertypesForMethods(Class cl,
Method[] methods) |
static String |
resolvableTypeName(Class type,
String[] importPkgs,
String[] importClasses) |
static String |
simpleClassName(Class cl) |
public static boolean isPublic(Class cl)
public static boolean isPrimitive(String typeStr)
public static Class forName(String fqcnOrPrimitive) throws ClassNotFoundException
ClassNotFoundException
public static Class forName(String fqOrSimple, String[] importPkgs, String[] importClasses) throws AmbiguousClassNameException, ClassNotFoundException
public static Class classForSimpleName(String simpleName, String[] importPkgs, String[] importClasses) throws AmbiguousClassNameException, ClassNotFoundException
public static String resolvableTypeName(Class type, String[] importPkgs, String[] importClasses) throws ClassNotFoundException
ClassNotFoundException
Copyright © 2017 com.mchange. All rights reserved.