public class TypeResolver extends Object
| Constructor and Description |
|---|
TypeResolver() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
erase(Type type)
Performs type erasure for given type.
|
static ParameterizedType |
getGenericSuperclass(Class<?> type,
Class<?> declaredType)
Answers immediate parameterized super type
that is causing the type to be instance of given declaredType.
|
static Class<?> |
getSuperclass(Class<?> type,
Class<?> declaredType)
Answers immediate super type that is causing to be the
type sub-type of given declaredType.
|
static Class<?>[] |
getSuperInterfaces(Class<?> type)
Answers all super interfaces that the class implements, including
transitively inherited ones.
|
static Map<TypeVariable<?>,Type> |
resolveVariables(Type type)
Resolves type variables in given class.
|
public static Class<?>[] getSuperInterfaces(Class<?> type)
type - public static ParameterizedType getGenericSuperclass(Class<?> type, Class<?> declaredType)
type - declaredType - public static Class<?> getSuperclass(Class<?> type, Class<?> declaredType)
type - declaredType - public static Map<TypeVariable<?>,Type> resolveVariables(Type type)
type - Copyright © 2015 MuleSoft, Inc.. All rights reserved.