Package org.mule.metadata.java.api.utils
Class TypeResolver
- java.lang.Object
-
- org.mule.metadata.java.api.utils.TypeResolver
-
public class TypeResolver extends Object
-
-
Constructor Summary
Constructors Constructor Description TypeResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>erase(Type type)Performs type erasure for given type.static ParameterizedTypegetGenericSuperclass(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.
-
-
-
Method Detail
-
getSuperInterfaces
public static Class<?>[] getSuperInterfaces(Class<?> type)
Answers all super interfaces that the class implements, including transitively inherited ones.
-
getGenericSuperclass
public static ParameterizedType getGenericSuperclass(Class<?> type, Class<?> declaredType)
Answers immediate parameterized super type that is causing the type to be instance of given declaredType.
-
resolveVariables
public static Map<TypeVariable<?>,Type> resolveVariables(Type type)
Resolves type variables in given class.
-
-