Package net.bytebuddy.description.type
Class TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForTypeVariable
- java.lang.Object
-
- net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Assigner.Dispatcher.AbstractBase
-
- net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForTypeVariable
-
- All Implemented Interfaces:
TypeDescription.Generic.Visitor<java.lang.Boolean>
,TypeDescription.Generic.Visitor.Assigner.Dispatcher
- Enclosing interface:
- TypeDescription.Generic.Visitor.Assigner.Dispatcher
@Enhance public static class TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForTypeVariable extends TypeDescription.Generic.Visitor.Assigner.Dispatcher.AbstractBase
A dispatcher for checking the assignability of a type variable.
-
-
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.Validator
-
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
typeVariable
The description of the type variable to which another type is assigned.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForTypeVariable(TypeDescription.Generic typeVariable)
Creates a new dispatcher of a type variable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).java.lang.Boolean
onNonGenericType(TypeDescription.Generic typeDescription)
Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC
).java.lang.Boolean
onParameterizedType(TypeDescription.Generic parameterizedType)
Visits a parameterized type (TypeDefinition.Sort.PARAMETERIZED
).java.lang.Boolean
onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).java.lang.Boolean
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 Detail
-
typeVariable
private final TypeDescription.Generic typeVariable
The description of the type variable to which another type is assigned.
-
-
Constructor Detail
-
ForTypeVariable
protected ForTypeVariable(TypeDescription.Generic typeVariable)
Creates a new dispatcher of a type variable.- Parameters:
typeVariable
- The description of the type variable to which another type is assigned.
-
-
Method Detail
-
onGenericArray
public java.lang.Boolean onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).- Parameters:
genericArray
- The generic array type.- Returns:
- The visitor's return value.
-
onWildcard
public java.lang.Boolean onWildcard(TypeDescription.Generic wildcard)
Visits a wildcard (TypeDefinition.Sort.WILDCARD
).- Parameters:
wildcard
- The wildcard.- Returns:
- The visitor's return value.
-
onParameterizedType
public java.lang.Boolean onParameterizedType(TypeDescription.Generic parameterizedType)
Visits a parameterized type (TypeDefinition.Sort.PARAMETERIZED
).- Parameters:
parameterizedType
- The generic array type.- Returns:
- The visitor's return value.
-
onTypeVariable
public java.lang.Boolean onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).- Parameters:
typeVariable
- The generic array type.- Returns:
- The visitor's return value.
-
onNonGenericType
public java.lang.Boolean onNonGenericType(TypeDescription.Generic typeDescription)
Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC
).- Parameters:
typeDescription
- The non-generic type.- Returns:
- The visitor's return value.
-
-