Package org.hibernate.models.spi
Interface TypeDetailsSwitch<T>
- All Known Implementing Classes:
IsResolvedTypeSwitch
public interface TypeDetailsSwitch<T>
Contract used in interpreting generics details.
-
Method Summary
Modifier and TypeMethodDescriptioncaseArrayType(ArrayTypeDetails arrayType, ModelsContext modelsContext) Handle the case of an arraycaseClass(ClassTypeDetails classType, ModelsContext modelsContext) Handle the case of a raw classcaseParameterizedType(ParameterizedTypeDetails parameterizedType, ModelsContext modelsContext) Handle the case of a parameterized typecasePrimitive(PrimitiveTypeDetails primitiveType, ModelsContext modelsContext) Handle the case of a primitivecaseTypeVariable(TypeVariableDetails typeVariable, ModelsContext modelsContext) Handle the case of a type variablecaseTypeVariableReference(TypeVariableReferenceDetails typeVariableReference, ModelsContext modelsContext) Handle the case of a reference to a type variablecaseVoid(VoidTypeDetails voidType, ModelsContext modelsContext) Handle the case of void (or Void)caseWildcardType(WildcardTypeDetails wildcardType, ModelsContext modelsContext) Handle the case of a wildcard typedefaultCase(TypeDetails type, ModelsContext modelsContext) Handle any other casesstatic <T> TswitchType(TypeDetails typeDetails, TypeDetailsSwitch<T> switcher, ModelsContext modelsContext) Main entry into the generics interpretation, with delegation to the defined case methods
-
Method Details
-
switchType
static <T> T switchType(TypeDetails typeDetails, TypeDetailsSwitch<T> switcher, ModelsContext modelsContext) Main entry into the generics interpretation, with delegation to the defined case methods -
caseClass
Handle the case of a raw class -
casePrimitive
Handle the case of a primitive -
caseVoid
Handle the case of void (or Void) -
caseParameterizedType
Handle the case of a parameterized type -
caseWildcardType
Handle the case of a wildcard type -
caseTypeVariable
Handle the case of a type variable -
caseTypeVariableReference
T caseTypeVariableReference(TypeVariableReferenceDetails typeVariableReference, ModelsContext modelsContext) Handle the case of a reference to a type variable -
caseArrayType
Handle the case of an array -
defaultCase
Handle any other cases
-