|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.jtype.TypeUtils
public final class TypeUtils
Provides utility methods for working with types.
| Method Summary | |
|---|---|
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 |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isAssignable(Type supertype,
Type type)
public static boolean isInstance(Type type,
Object object)
public static Type getErasedType(Type type)
type - the type to perform erasure on
public static Class<?> getErasedReferenceType(Type type)
@Deprecated public static Class<?> getRawType(Type type)
getErasedReferenceType(Type) instead.
public static boolean isArray(Type type)
public static Type getComponentType(Type type)
public static Type getArrayType(Type componentType)
public static boolean isSimpleParameterizedType(Type type,
Class<?> rawType)
public static Type getActualTypeArgument(Type type)
public static Type getResolvedSuperclass(Type type)
public static Type[] getResolvedInterfaces(Type type)
public static String toString(Type type)
public static String toString(Type type,
ClassSerializer serializer)
public static String toUnqualifiedString(Type type)
public static String toSimpleString(Type type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||