Package org.hibernate.models.internal
Class TypeVariableReferenceDetailsImpl
java.lang.Object
org.hibernate.models.internal.TypeVariableReferenceDetailsImpl
- All Implemented Interfaces:
TypeDetails,TypeVariableReferenceDetails,TypeVariableScope
public class TypeVariableReferenceDetailsImpl
extends Object
implements TypeVariableReferenceDetails
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.models.spi.TypeDetails
TypeDetails.Kind -
Constructor Summary
ConstructorsConstructorDescriptionTypeVariableReferenceDetailsImpl(String identifier) TypeVariableReferenceDetailsImpl(String identifier, TypeVariableDetails target) -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanisImplementor(Class<?> checkType) Whether the described class is an implementor of the givencheckType.resolveTypeVariable(TypeVariableDetails typeVariable) Resolve the type of the provided type variable relative to this scope.voidsetTarget(TypeVariableDetails target) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.models.spi.TypeDetails
asArrayType, asClassType, asParameterizedType, asPrimitiveType, asTypeVariable, asVoidType, asWildcardType, determineRawClass, determineRelativeType, isResolvedMethods inherited from interface org.hibernate.models.spi.TypeVariableReferenceDetails
asTypeVariableReference, getTypeKind
-
Constructor Details
-
TypeVariableReferenceDetailsImpl
-
TypeVariableReferenceDetailsImpl
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifierin interfaceTypeVariableReferenceDetails
-
getTarget
- Specified by:
getTargetin interfaceTypeVariableReferenceDetails
-
setTarget
-
getName
- Specified by:
getNamein interfaceTypeDetails
-
isImplementor
Description copied from interface:TypeDetailsWhether the described class is an implementor of the givencheckType.- Specified by:
isImplementorin interfaceTypeDetails
-
resolveTypeVariable
Description copied from interface:TypeVariableScopeResolve the type of the provided type variable relative to this scope. For example, givenclass
A call to this method on theThing<I extends Number>{ I id; }Thingscope with the type variable representingIwill return theI extends Numbertype variable definition itself. If this scope defines a corresponding type argument, the concrete type is returned. For example, givenclass
This method will yield theStuff extends Thing<Integer>{ }Integertype details.- Specified by:
resolveTypeVariablein interfaceTypeVariableScope- Parameters:
typeVariable- The type variable to resolve- Returns:
- The type variable's resolved type, or
nullif none could be found
-