Package net.bytebuddy.description.type
Class TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForGenericArray
java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Assigner.Dispatcher.AbstractBase
net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForGenericArray
- All Implemented Interfaces:
TypeDescription.Generic.Visitor<Boolean>,TypeDescription.Generic.Visitor.Assigner.Dispatcher
- Enclosing interface:
TypeDescription.Generic.Visitor.Assigner.Dispatcher
@Enhance
public static class TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForGenericArray
extends TypeDescription.Generic.Visitor.Assigner.Dispatcher.AbstractBase
A dispatcher for checking the assignability of a generic array type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.Visitor
TypeDescription.Generic.Visitor.AnnotationStripper, TypeDescription.Generic.Visitor.Assigner, TypeDescription.Generic.Visitor.ForRawType, TypeDescription.Generic.Visitor.ForSignatureVisitor, TypeDescription.Generic.Visitor.NoOp, TypeDescription.Generic.Visitor.Reducing, TypeDescription.Generic.Visitor.Reifying, TypeDescription.Generic.Visitor.Substitutor, TypeDescription.Generic.Visitor.TypeErasing, TypeDescription.Generic.Visitor.ValidatorNested 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.GenericThe generic array type to which another type is assigned. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForGenericArray(TypeDescription.Generic genericArray) Creates a new dispatcher for checking the assignability of a generic array type. -
Method Summary
Modifier and TypeMethodDescriptiononGenericArray(TypeDescription.Generic genericArray) Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY).onNonGenericType(TypeDescription.Generic typeDescription) Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC).onParameterizedType(TypeDescription.Generic parameterizedType) Visits a parameterized type (TypeDefinition.Sort.PARAMETERIZED).onTypeVariable(TypeDescription.Generic typeVariable) Visits a type variable (TypeDefinition.Sort.VARIABLE,TypeDefinition.Sort.VARIABLE_SYMBOLIC).onWildcard(TypeDescription.Generic wildcard) Visits a wildcard (TypeDefinition.Sort.WILDCARD).Methods inherited from class net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Assigner.Dispatcher.AbstractBase
isAssignableFrom
-
Field Details
-
genericArray
The generic array type to which another type is assigned.
-
-
Constructor Details
-
ForGenericArray
Creates a new dispatcher for checking the assignability of a generic array type.- Parameters:
genericArray- The generic array type to which another type is assigned.
-
-
Method Details
-
onGenericArray
Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY).- Parameters:
genericArray- The generic array type.- Returns:
- The visitor's return value.
-
onWildcard
Visits a wildcard (TypeDefinition.Sort.WILDCARD).- Parameters:
wildcard- The wildcard.- Returns:
- The visitor's return value.
-
onParameterizedType
Visits a parameterized type (TypeDefinition.Sort.PARAMETERIZED).- Parameters:
parameterizedType- The generic array type.- Returns:
- The visitor's return value.
-
onTypeVariable
Visits a type variable (TypeDefinition.Sort.VARIABLE,TypeDefinition.Sort.VARIABLE_SYMBOLIC).- Parameters:
typeVariable- The generic array type.- Returns:
- The visitor's return value.
-
onNonGenericType
Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC).- Parameters:
typeDescription- The non-generic type.- Returns:
- The visitor's return value.
-