Class TypeVariableDetailsImpl

java.lang.Object
org.hibernate.models.internal.TypeVariableDetailsImpl
All Implemented Interfaces:
TypeDetails, TypeVariableDetails, TypeVariableScope

public class TypeVariableDetailsImpl extends Object implements TypeVariableDetails
  • Constructor Details

  • Method Details

    • getIdentifier

      public String getIdentifier()
      Specified by:
      getIdentifier in interface TypeVariableDetails
    • getDeclaringType

      public ClassDetails getDeclaringType()
      Description copied from interface: TypeVariableDetails
      The class where this type variable is defined.
      Specified by:
      getDeclaringType in interface TypeVariableDetails
    • getBounds

      public List<TypeDetails> getBounds()
      Specified by:
      getBounds in interface TypeVariableDetails
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object