Class GenericTypeAwareAssigner.IsAssignableToVisitor.OfWildcard
- java.lang.Object
-
- net.bytebuddy.implementation.bytecode.assign.reference.GenericTypeAwareAssigner.IsAssignableToVisitor.OfWildcard
-
- All Implemented Interfaces:
TypeDescription.Generic.Visitor<java.lang.Boolean>
- Enclosing class:
- GenericTypeAwareAssigner.IsAssignableToVisitor
@Enhance protected static class GenericTypeAwareAssigner.IsAssignableToVisitor.OfWildcard extends java.lang.Object implements TypeDescription.Generic.Visitor<java.lang.Boolean>
A visitor to determine the assignability of a wildcard 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.Validator
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription.Generic
wildcard
The wildcard type being assigned to another type.
-
Constructor Summary
Constructors Modifier Constructor Description protected
OfWildcard(TypeDescription.Generic wildcard)
Creates a visitor for a wildcard type assignment.
-
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
).
-
-
-
Field Detail
-
wildcard
private final TypeDescription.Generic wildcard
The wildcard type being assigned to another type.
-
-
Constructor Detail
-
OfWildcard
protected OfWildcard(TypeDescription.Generic wildcard)
Creates a visitor for a wildcard type assignment.- Parameters:
wildcard
- The wildcard type being assigned to another type.
-
-
Method Detail
-
onGenericArray
public java.lang.Boolean onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).- Specified by:
onGenericArray
in interfaceTypeDescription.Generic.Visitor<java.lang.Boolean>
- 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
).- Specified by:
onWildcard
in interfaceTypeDescription.Generic.Visitor<java.lang.Boolean>
- 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
).- Specified by:
onParameterizedType
in interfaceTypeDescription.Generic.Visitor<java.lang.Boolean>
- 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
).- Specified by:
onTypeVariable
in interfaceTypeDescription.Generic.Visitor<java.lang.Boolean>
- 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
).- Specified by:
onNonGenericType
in interfaceTypeDescription.Generic.Visitor<java.lang.Boolean>
- Parameters:
typeDescription
- The non-generic type.- Returns:
- The visitor's return value.
-
-