Package net.bytebuddy.description.type
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.DispatcherA dispatcher that allows to check if the visited generic type is assignable to the supplied type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTypeDescription.Generic.Visitor.Assigner.Dispatcher.AbstractBaseAn abstract base implementation of a dispatcher that forwards the decision to a visitor implementation.static classTypeDescription.Generic.Visitor.Assigner.Dispatcher.ForGenericArrayA dispatcher for checking the assignability of a generic array type.static classTypeDescription.Generic.Visitor.Assigner.Dispatcher.ForNonGenericTypeA dispatcher for checking the assignability of a non-generic type.static classTypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedTypeA dispatcher for checking the assignability of a parameterized type.static classTypeDescription.Generic.Visitor.Assigner.Dispatcher.ForTypeVariableA dispatcher for checking the assignability of a type variable.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisAssignableFrom(TypeDescription.Generic typeDescription)Checks if the represented type is a super type of the type that is supplied as an argument.
-
-
-
Method Detail
-
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:
trueif the represented type is assignable to the supplied type.
-
-