public final class ClassUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Type[] |
extractGenericType(Class<?> paramType,
Class<?>... references) |
static Class<?> |
extractTypeArg(Class<?> paramType,
Class<?>... references) |
static Method |
findGetterByAnnotatedName(Class<?> clazz,
Class<? extends Annotation> ann,
String name) |
static <ANN extends Annotation> |
getAnnotation(Class<ANN> reference,
AccessibleObject obj) |
static Class<?> |
getCompoundKeyRef(Class<?> entityTypeRef) |
static String |
getEntityTypeName(Class<?> ref) |
static Class<?> |
getKeyRef(Class<?> entityTypeRef) |
static String |
getNamespace(Class<?> ref) |
static Type[] |
getTypeArguments(Type type) |
static <T> Class<T> |
getTypeClass(Type type) |
static Void |
returnVoid() |
public static Type[] extractGenericType(Class<?> paramType, Class<?>... references)
public static Method findGetterByAnnotatedName(Class<?> clazz, Class<? extends Annotation> ann, String name)
public static <ANN extends Annotation> ANN getAnnotation(Class<ANN> reference, AccessibleObject obj)
public static Void returnVoid() throws NoSuchMethodException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.