Package net.bytebuddy.description.type
Class TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.CovariantBinding
java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.CovariantBinding
- All Implemented Interfaces:
TypeDescription.Generic.Visitor.Assigner.Dispatcher
- Enclosing class:
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner
@Enhance
protected static class TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.CovariantBinding
extends Object
implements TypeDescription.Generic.Visitor.Assigner.Dispatcher
A dispatcher for an covariant parameter of a parameterized type, i.e. a type that is the lower bound of a wildcard.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Assigner.Dispatcher
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.ForTypeVariable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeDescription.Generic
The lower bound type of a covariant parameter. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CovariantBinding
(TypeDescription.Generic upperBound) Creates a new dispatcher for covariant parameter of a parameterized type. -
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.
-
Field Details
-
upperBound
The lower bound type of a covariant parameter.
-
-
Constructor Details
-
CovariantBinding
Creates a new dispatcher for covariant parameter of a parameterized type.- Parameters:
upperBound
- The upper bound type of a covariant parameter.
-
-
Method Details
-
isAssignableFrom
Checks if the represented type is a super type of the type that is supplied as an argument.- Specified by:
isAssignableFrom
in interfaceTypeDescription.Generic.Visitor.Assigner.Dispatcher
- 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.
-