Package org.apache.flink.util
Class ReflectionUtil
- java.lang.Object
-
- org.apache.flink.util.ReflectionUtil
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReflectionUtil.FullTypeInfo
Container for the full type information of a type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReflectionUtil.FullTypeInfo
getFullTemplateType(Type type)
Extract the full type information from the given type.static ReflectionUtil.FullTypeInfo
getFullTemplateType(Type type, int templatePosition)
Extract the full template type information from the given type's template parameter at the given position.static Class<?>[]
getSuperTemplateTypes(Class<?> clazz)
static Class<?>[]
getSuperTemplateTypes(Class<?> clazz, Class<?> searchedSuperClass)
static <T> Class<T>
getTemplateType(Class<?> clazz, int num)
static <T> Class<T>
getTemplateType(Class<?> clazz, Class<?> classWithParameter, int num)
static <T> Class<T>
getTemplateType1(Class<?> clazz)
static <T> Class<T>
getTemplateType1(Type type)
static <T> Class<T>
getTemplateType2(Class<?> clazz)
static <T> Class<T>
getTemplateType3(Class<?> clazz)
static <T> Class<T>
getTemplateType4(Class<?> clazz)
static <T> Class<T>
getTemplateType5(Class<?> clazz)
static <T> Class<T>
getTemplateType6(Class<?> clazz)
static <T> Class<T>
getTemplateType7(Class<?> clazz)
static <T> Class<T>
getTemplateType8(Class<?> clazz)
static Class<?>[]
getTemplateTypes(Class<?> clazz)
static Class<?>[]
getTemplateTypes(ParameterizedType paramterizedType)
static <T> T
newInstance(Class<T> clazz)
-
-
-
Method Detail
-
newInstance
public static <T> T newInstance(Class<T> clazz)
-
getTemplateType
public static <T> Class<T> getTemplateType(Class<?> clazz, Class<?> classWithParameter, int num)
-
getSuperTemplateTypes
public static Class<?>[] getSuperTemplateTypes(Class<?> clazz, Class<?> searchedSuperClass)
-
getTemplateTypes
public static Class<?>[] getTemplateTypes(ParameterizedType paramterizedType)
-
getFullTemplateType
public static ReflectionUtil.FullTypeInfo getFullTemplateType(Type type, int templatePosition)
Extract the full template type information from the given type's template parameter at the given position.- Parameters:
type
- type to extract the full template parameter information fromtemplatePosition
- describing at which position the template type parameter is- Returns:
- Full type information describing the template parameter's type
-
getFullTemplateType
public static ReflectionUtil.FullTypeInfo getFullTemplateType(Type type)
Extract the full type information from the given type.- Parameters:
type
- to be analyzed- Returns:
- Full type information describing the given type
-
-