public final class TypeUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
accept(Type type,
TypeVisitor visitor) |
static Type |
getActualTypeArgument(Type type) |
static Type |
getArrayType(Type componentType) |
static Type |
getComponentType(Type type) |
static Class<?> |
getErasedReferenceType(Type type) |
static Type |
getErasedType(Type type)
Gets the erased type of the specified type.
|
static Class<?> |
getRawType(Type type)
Deprecated.
Use
getErasedReferenceType(Type) instead. |
static Type[] |
getResolvedInterfaces(Type type) |
static Type |
getResolvedSuperclass(Type type) |
static boolean |
isArray(Type type) |
static boolean |
isAssignable(Type supertype,
Type type) |
static boolean |
isInstance(Type type,
Object object) |
static boolean |
isPrimitive(Type type) |
static boolean |
isSimpleParameterizedType(Type type,
Class<?> rawType) |
static String |
toSimpleString(Type type) |
static String |
toString(Type type) |
static String |
toString(Type type,
ClassSerializer serializer) |
static String |
toUnqualifiedString(Type type) |
public static void accept(Type type, TypeVisitor visitor)
public static Type getErasedType(Type type)
type
- the type to perform erasure on@Deprecated public static Class<?> getRawType(Type type)
getErasedReferenceType(Type)
instead.public static boolean isArray(Type type)
public static boolean isPrimitive(Type type)
public static boolean isSimpleParameterizedType(Type type, Class<?> rawType)
public static String toString(Type type, ClassSerializer serializer)
Copyright © 2008-2015. All Rights Reserved.