Class TypeVariableReferenceDetailsImpl

java.lang.Object
org.hibernate.models.internal.TypeVariableReferenceDetailsImpl
All Implemented Interfaces:
TypeDetails, TypeVariableReferenceDetails, TypeVariableScope

public class TypeVariableReferenceDetailsImpl extends Object implements TypeVariableReferenceDetails
  • Constructor Details

    • TypeVariableReferenceDetailsImpl

      public TypeVariableReferenceDetailsImpl(String identifier)
    • TypeVariableReferenceDetailsImpl

      public TypeVariableReferenceDetailsImpl(String identifier, TypeVariableDetails target)
  • Method Details

    • getIdentifier

      public String getIdentifier()
      Specified by:
      getIdentifier in interface TypeVariableReferenceDetails
    • getTarget

      public TypeVariableDetails getTarget()
      Specified by:
      getTarget in interface TypeVariableReferenceDetails
    • setTarget

      public void setTarget(TypeVariableDetails target)
    • getName

      public String getName()
      Specified by:
      getName in interface TypeDetails
    • isImplementor

      public boolean isImplementor(Class<?> checkType)
      Description copied from interface: TypeDetails
      Whether the described class is an implementor of the given checkType.
      Specified by:
      isImplementor in interface TypeDetails
    • resolveTypeVariable

      public TypeDetails resolveTypeVariable(TypeVariableDetails typeVariable)
      Description copied from interface: TypeVariableScope
      Resolve the type of the provided type variable relative to this scope.

      For example, given

       class Thing<I extends Number> {
           I id;
       }
       
      A call to this method on the Thing scope with the type variable representing I will return the I extends Number type variable definition itself.

      If this scope defines a corresponding type argument, the concrete type is returned. For example, given

       class Stuff extends Thing<Integer> {
       }
       
      This method will yield the Integer type details.
      Specified by:
      resolveTypeVariable in interface TypeVariableScope
      Parameters:
      typeVariable - The type variable to resolve
      Returns:
      The type variable's resolved type, or null if none could be found