Top Description Fields Constructors Methods
com.mchange.v1.lang

public final Class ClassUtils

extends Object
Class Inheritance
Imports
java.util.*, com.mchange.v1.jvm.*, java.lang.reflect.Method, .Modifier

See also com.mchange.v2.codegen.ClassUtils for related methods.

Field Summary

Modifier and TypeField and Description
pack-priv static final String[]
pack-priv static Map<K, V>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
public static Set<E>
public static Class<T>
public static Class<T>
classForSimpleName(String simpleName, String[] importPkgs, String[] importClasses)

private static boolean
containsMethod(Class<T> cl, Method m, boolean cl_as_supertype)

public static boolean
public static boolean
public static Class<T>
forName(String fqcnOrPrimitive)

public static Class<T>
forName(String fqOrSimple, String[] importPkgs, String[] importClasses)

public static String
private static boolean
hasAllMethods(Class<T> cl, Method[] methods, boolean cl_as_supertype)

public static boolean
public static boolean
public static boolean
public static boolean
isPublic(Class<T> cl)

public static Set<E>
public static String
resolvableTypeName(Class<T> type, String[] importPkgs, String[] importClasses)

public static String
private static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_SAback to summary
pack-priv static final String[] EMPTY_SA
primitivesToClassesback to summary
pack-priv static Map<K, V> primitivesToClasses

Constructor Detail

ClassUtilsback to summary
private ClassUtils()

Method Detail

addSuperInterfacesToSetback to summary
private static void addSuperInterfacesToSet(Class<T> type, Set<E> set)
allAssignableFromback to summary
public static Set<E> allAssignableFrom(Class<T> type)
classForPrimitiveback to summary
public static Class<T> classForPrimitive(String typeStr)
classForSimpleNameback to summary
public static Class<T> classForSimpleName(String simpleName, String[] importPkgs, String[] importClasses) throws AmbiguousClassNameException, ClassNotFoundException
containsMethodback to summary
private static boolean containsMethod(Class<T> cl, Method m, boolean cl_as_supertype)
containsMethodAsSubtypeback to summary
public static boolean containsMethodAsSubtype(Class<T> cl, Method m)
containsMethodAsSupertypeback to summary
public static boolean containsMethodAsSupertype(Class<T> cl, Method m)
forNameback to summary
public static Class<T> forName(String fqcnOrPrimitive) throws ClassNotFoundException
forNameback to summary
public static Class<T> forName(String fqOrSimple, String[] importPkgs, String[] importClasses) throws AmbiguousClassNameException, ClassNotFoundException
fqcnLastElementback to summary
public static String fqcnLastElement(String fqcn)
hasAllMethodsback to summary
private static boolean hasAllMethods(Class<T> cl, Method[] methods, boolean cl_as_supertype)
hasAllMethodsAsSubtypeback to summary
public static boolean hasAllMethodsAsSubtype(Class<T> cl, Method[] methods)
hasAllMethodsAsSupertypeback to summary
public static boolean hasAllMethodsAsSupertype(Class<T> cl, Method[] methods)
isPrimitiveback to summary
public static boolean isPrimitive(String typeStr)
isPublicback to summary
public static boolean isPublic(Class<T> cl)
publicSupertypesForMethodsback to summary
public static Set<E> publicSupertypesForMethods(Class<T> cl, Method[] methods)
resolvableTypeNameback to summary
public static String resolvableTypeName(Class<T> type, String[] importPkgs, String[] importClasses) throws ClassNotFoundException
simpleClassNameback to summary
public static String simpleClassName(Class<T> cl)
simpleClassNameback to summary
private static String simpleClassName(String fqcn)