Class TypeReflectHelper
java.lang.Object
io.ebeaninternal.server.type.TypeReflectHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasEnumClass(Type valueType) Return the enum class for this type taking into account wildcard type.static Class<?> getMapKeyType(Type genericType) Return the type of the map key.static TypegetMapKeyTypeRaw(Type genericType) Return the raw type of the map key (first type argument).static Class<?>[]static TypegetValueType(Type collectionType) Return the value type of a collection type (list, set, map values).static booleanisEnumType(Type valueType) Return true if the type is an enum.static Class<?> resolveCollectionTarget(Type typeArg) Return the element class for a collection or map type argument (handles Class, ParameterizedType raw, and Kotlin-generated wildcard upper bounds).static Class<?> resolveToClass(Type type) Return the raw Class for a Type, handling Class, ParameterizedType, and WildcardType.static TyperesolveType(Type type, Map<TypeVariable<?>, Type> typeMap) Resolve a Type through the given type-variable map, recursively substituting any bound TypeVariables and rebuilding ParameterizedTypes whose arguments changed.static Map<TypeVariable<?>, Type> typeVariableMap(Class<?> targetType) Return the full map of TypeVariable to resolved Type for the given class and its entire superclass/interface hierarchy.
-
Constructor Details
-
TypeReflectHelper
public TypeReflectHelper()
-
-
Method Details
-
typeVariableMap
Return the full map of TypeVariable to resolved Type for the given class and its entire superclass/interface hierarchy. Used to resolve generic field types in mapped superclasses. -
getParams
-
asEnumClass
-
isEnumType
Return true if the type is an enum. -
getMapKeyType
-
getMapKeyTypeRaw
-
getValueType
-
resolveToClass
-
resolveCollectionTarget
-
resolveType
Resolve a Type through the given type-variable map, recursively substituting any bound TypeVariables and rebuilding ParameterizedTypes whose arguments changed.
-