Interface TypeDescription.Generic.Visitor.Assigner.Dispatcher

All Known Implementing Classes:
TypeDescription.Generic.Visitor.Assigner.Dispatcher.AbstractBase, TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForGenericArray, TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForNonGenericType, TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType, TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.ContravariantBinding, TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.CovariantBinding, TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.InvariantBinding, TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForTypeVariable
Enclosing class:
TypeDescription.Generic.Visitor.Assigner

public static interface TypeDescription.Generic.Visitor.Assigner.Dispatcher
A dispatcher that allows to check if the visited generic type is assignable to the supplied type.
  • Method Details

    • isAssignableFrom

      boolean isAssignableFrom(TypeDescription.Generic typeDescription)
      Checks if the represented type is a super type of the type that is supplied as an argument.
      Parameters:
      typeDescription - The type to check for being assignable to the represented type.
      Returns:
      true if the represented type is assignable to the supplied type.