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<?>[] |
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)
public static ParameterizedType getGenericSuperclass(Class<?> type, Class<?> declaredType)
public static Map<TypeVariable<?>,Type> resolveVariables(Type type)
Copyright © 2021 MuleSoft, Inc.. All rights reserved.