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 java.lang.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
Fields Modifier and Type Field Description private TypeDescription.GenericupperBoundThe lower bound type of a covariant parameter.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCovariantBinding(TypeDescription.Generic upperBound)Creates a new dispatcher for covariant parameter of a parameterized type.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
upperBound
private final TypeDescription.Generic upperBound
The lower bound type of a covariant parameter.
-
-
Constructor Detail
-
CovariantBinding
protected CovariantBinding(TypeDescription.Generic upperBound)
Creates a new dispatcher for covariant parameter of a parameterized type.- Parameters:
upperBound- The upper bound type of a covariant parameter.
-
-
Method Detail
-
isAssignableFrom
public boolean isAssignableFrom(TypeDescription.Generic typeDescription)
Checks if the represented type is a super type of the type that is supplied as an argument.- Specified by:
isAssignableFromin interfaceTypeDescription.Generic.Visitor.Assigner.Dispatcher- Parameters:
typeDescription- The type to check for being assignable to the represented type.- Returns:
trueif the represented type is assignable to the supplied type.
-
-