Package org.hibernate.models.spi
Interface TypeVariableDetails
- All Superinterfaces:
TypeDetails,TypeVariableScope
- All Known Implementing Classes:
TypeVariableDetailsImpl
Models a resolved type parameter or type argument.
The name of the type variable corresponds to the raw type name,
which is the first upper bound. The identifier is the name
of the type variable as present in the source code.
For example:
T extends NumberIn this case, the identifier is
T, while the name is java.lang.Number.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.models.spi.TypeDetails
TypeDetails.Kind -
Method Summary
Modifier and TypeMethodDescriptiondefault TypeVariableDetailsCast this TypeDetails as a TypeVariableDetails, throwing an exception if it cannot be.The class where this type variable is defined.default TypeDetails.KindMethods inherited from interface org.hibernate.models.spi.TypeDetails
asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariableReference, asVoidType, asWildcardType, determineRawClass, determineRelativeType, getName, isImplementor, isResolvedMethods inherited from interface org.hibernate.models.spi.TypeVariableScope
resolveTypeVariable
-
Method Details
-
getIdentifier
String getIdentifier() -
getDeclaringType
ClassDetails getDeclaringType()The class where this type variable is defined. -
getBounds
List<TypeDetails> getBounds() -
getTypeKind
- Specified by:
getTypeKindin interfaceTypeDetails
-
asTypeVariable
Description copied from interface:TypeDetailsCast this TypeDetails as a TypeVariableDetails, throwing an exception if it cannot be.- Specified by:
asTypeVariablein interfaceTypeDetails
-