public class ClassUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Class<?> |
extractComponentClassOfIterable(java.beans.PropertyDescriptor descriptor) |
static java.lang.Class<?> |
extractComponentClassOfIterable(java.lang.reflect.Type type) |
static java.lang.reflect.Type |
extractComponentTypeOfIterable(java.beans.PropertyDescriptor descriptor) |
static java.lang.reflect.Type |
extractComponentTypeOfIterable(java.lang.reflect.Type type) |
static <T extends java.lang.annotation.Annotation> |
findAnnotation(java.lang.Class<T> annotationType,
java.beans.PropertyDescriptor of) |
static java.lang.Class<?> |
findClass(java.lang.String name) |
static <T> java.lang.Class<? extends T> |
findClass(java.lang.String name,
java.lang.Class<T> expectedType) |
static java.lang.Class<?> |
findClass(java.lang.String name,
java.lang.ClassLoader classLoader) |
static <T> java.lang.Class<? extends T> |
findClass(java.lang.String name,
java.lang.ClassLoader classLoader,
java.lang.Class<T> expectedType) |
static java.lang.reflect.Field |
getFieldOf(java.lang.Class<?> ofType,
java.lang.Class<?> valueType,
java.lang.String fieldName,
boolean isStatic) |
static java.lang.reflect.Type |
getGenericTypeOf(java.beans.PropertyDescriptor descriptor) |
static java.lang.reflect.Method |
getPublicMethodOf(java.lang.Class<?> ofType,
java.lang.Class<?> returnType,
java.lang.String methodName,
java.lang.Class<?>... parameterTypes) |
static java.lang.Class<?> |
toClass(java.lang.reflect.Type type) |
static java.lang.Class<?> |
tryExtractComponentClassOfIterable(java.beans.PropertyDescriptor descriptor) |
static java.lang.Class<?> |
tryExtractComponentClassOfIterable(java.lang.reflect.Type type) |
static java.lang.reflect.Type |
tryExtractComponentTypeOfIterable(java.beans.PropertyDescriptor descriptor) |
static java.lang.reflect.Type |
tryExtractComponentTypeOfIterable(java.lang.reflect.Type type) |
@Nullable
public static java.lang.Class<?> toClass(@Nullable
java.lang.reflect.Type type)
@Nullable
public static java.lang.reflect.Type tryExtractComponentTypeOfIterable(@Nonnull
java.lang.reflect.Type type)
@Nullable
public static java.lang.Class<?> tryExtractComponentClassOfIterable(@Nonnull
java.lang.reflect.Type type)
@Nonnull
public static java.lang.reflect.Type extractComponentTypeOfIterable(@Nonnull
java.lang.reflect.Type type)
@Nonnull
public static java.lang.Class<?> extractComponentClassOfIterable(@Nonnull
java.lang.reflect.Type type)
@Nonnull
public static java.lang.reflect.Type tryExtractComponentTypeOfIterable(@Nonnull
java.beans.PropertyDescriptor descriptor)
@Nonnull
public static java.lang.Class<?> tryExtractComponentClassOfIterable(@Nonnull
java.beans.PropertyDescriptor descriptor)
@Nonnull
public static java.lang.reflect.Type extractComponentTypeOfIterable(@Nonnull
java.beans.PropertyDescriptor descriptor)
@Nonnull
public static java.lang.Class<?> extractComponentClassOfIterable(@Nonnull
java.beans.PropertyDescriptor descriptor)
@Nonnull
public static java.lang.reflect.Type getGenericTypeOf(@Nonnull
java.beans.PropertyDescriptor descriptor)
@Nonnull
public static java.lang.reflect.Method getPublicMethodOf(@Nonnull
java.lang.Class<?> ofType,
@Nonnull
java.lang.Class<?> returnType,
@Nonnull
java.lang.String methodName,
@Nullable
java.lang.Class<?>... parameterTypes)
@Nonnull
public static java.lang.reflect.Field getFieldOf(@Nonnull
java.lang.Class<?> ofType,
@Nonnull
java.lang.Class<?> valueType,
@Nonnull
java.lang.String fieldName,
boolean isStatic)
@Nullable
public static <T extends java.lang.annotation.Annotation> T findAnnotation(@Nonnull
java.lang.Class<T> annotationType,
@Nonnull
java.beans.PropertyDescriptor of)
@Nullable
public static java.lang.Class<?> findClass(@Nonnull
java.lang.String name,
@Nullable
java.lang.ClassLoader classLoader)
@Nullable
public static <T> java.lang.Class<? extends T> findClass(@Nonnull
java.lang.String name,
@Nullable
java.lang.ClassLoader classLoader,
@Nonnull
java.lang.Class<T> expectedType)
@Nullable
public static java.lang.Class<?> findClass(@Nonnull
java.lang.String name)
@Nullable
public static <T> java.lang.Class<? extends T> findClass(@Nonnull
java.lang.String name,
@Nonnull
java.lang.Class<T> expectedType)
Copyright © 2013 echocat. All Rights Reserved.