|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.resteasy.util.Types
public class Types
Type conversions and generic type manipulations
Nested Class Summary | |
---|---|
static class |
Types.TypeInfo
|
Constructor Summary | |
---|---|
Types()
|
Method Summary | |
---|---|
static java.lang.reflect.Type |
getActualValueOfTypeVariable(java.lang.Class<?> clazz,
java.lang.reflect.TypeVariable<?> typeVariable)
Finds an actual value of a type variable. |
static java.lang.Class |
getCollectionBaseType(java.lang.Class type,
java.lang.reflect.Type genericType)
|
static java.lang.reflect.Type[] |
getGenericParameterTypesOfGenericInterfaceMethod(java.lang.Class clazz,
java.lang.reflect.Method method)
Given an interface Method, look in the implementing class for the method that implements the interface's method to obtain generic type information. |
static java.lang.reflect.Type |
getGenericReturnTypeOfGenericInterfaceMethod(java.lang.Class clazz,
java.lang.reflect.Method method)
Given an interface Method, look in the implementing class for the method that implements the interface's method to obtain generic type information. |
static java.lang.Class |
getMapKeyType(java.lang.reflect.Type genericType)
|
static java.lang.Class |
getMapValueType(java.lang.reflect.Type genericType)
|
static java.lang.Class<?> |
getRawType(java.lang.reflect.Type type)
|
static java.lang.Class<?> |
getRawTypeNoException(java.lang.reflect.Type type)
|
static java.lang.Class |
getTemplateParameterOfInterface(java.lang.Class base,
java.lang.Class desiredInterface)
|
static java.lang.Class<?> |
getTypeArgument(java.lang.reflect.Type genericType)
Returns the type argument from a parameterized type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Types()
Method Detail |
---|
public static java.lang.Class getTemplateParameterOfInterface(java.lang.Class base, java.lang.Class desiredInterface)
public static java.lang.reflect.Type getGenericReturnTypeOfGenericInterfaceMethod(java.lang.Class clazz, java.lang.reflect.Method method)
interface Foo{
- Parameters:
clazz
-method
- interface method- Returns:
public static java.lang.reflect.Type[] getGenericParameterTypesOfGenericInterfaceMethod(java.lang.Class clazz, java.lang.reflect.Method method)
interface Foo{
- Parameters:
clazz
-method
- interface method- Returns:
public static java.lang.Class<?> getRawType(java.lang.reflect.Type type)
public static java.lang.Class<?> getRawTypeNoException(java.lang.reflect.Type type)
public static java.lang.Class<?> getTypeArgument(java.lang.reflect.Type genericType)
genericType
-
public static java.lang.Class getCollectionBaseType(java.lang.Class type, java.lang.reflect.Type genericType)
public static java.lang.Class getMapKeyType(java.lang.reflect.Type genericType)
public static java.lang.Class getMapValueType(java.lang.reflect.Type genericType)
public static java.lang.reflect.Type getActualValueOfTypeVariable(java.lang.Class<?> clazz, java.lang.reflect.TypeVariable<?> typeVariable)
clazz
- typeVariable
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |