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.Dispatcher
A dispatcher that allows to check if the visited generic type is assignable to the supplied type.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
An abstract base implementation of a dispatcher that forwards the decision to a visitor implementation.static class
A dispatcher for checking the assignability of a generic array type.static class
A dispatcher for checking the assignability of a non-generic type.static class
A dispatcher for checking the assignability of a parameterized type.static class
A dispatcher for checking the assignability of a type variable. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isAssignableFrom
(TypeDescription.Generic typeDescription) Checks if the represented type is a super type of the type that is supplied as an argument.
-
Method Details
-
isAssignableFrom
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.
-