Package net.bytebuddy.description.type
Class TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.InvariantBinding
- java.lang.Object
-
- net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner.InvariantBinding
-
- 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.InvariantBinding extends java.lang.Object implements TypeDescription.Generic.Visitor.Assigner.Dispatcher
A dispatcher for an invariant parameter of a parameterized type, i.e. a type without 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.Generic
typeDescription
The invariant type of the parameter.
-
Constructor Summary
Constructors Modifier Constructor Description protected
InvariantBinding(TypeDescription.Generic typeDescription)
Creates a new dispatcher for an invariant parameter of a parameterized type.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
typeDescription
private final TypeDescription.Generic typeDescription
The invariant type of the parameter.
-
-
Constructor Detail
-
InvariantBinding
protected InvariantBinding(TypeDescription.Generic typeDescription)
Creates a new dispatcher for an invariant parameter of a parameterized type.- Parameters:
typeDescription
- The invariant type of the 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:
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.
-
-