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 Classes Modifier and Type Interface Description static class
TypeDescription.Generic.Visitor.Assigner.Dispatcher.AbstractBase
An abstract base implementation of a dispatcher that forwards the decision to a visitor implementation.static class
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForGenericArray
A dispatcher for checking the assignability of a generic array type.static class
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForNonGenericType
A dispatcher for checking the assignability of a non-generic type.static class
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType
A dispatcher for checking the assignability of a parameterized type.static class
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForTypeVariable
A dispatcher for checking the assignability of a type variable.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isAssignableFrom(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:
true
if the represented type is assignable to the supplied type.
-
-