Class GenericTypeAwareAssigner.IsAssignableToVisitor.OfManifestType
- java.lang.Object
-
- net.bytebuddy.implementation.bytecode.assign.reference.GenericTypeAwareAssigner.IsAssignableToVisitor.OfManifestType
-
- All Implemented Interfaces:
TypeDescription.Generic.Visitor<java.lang.Boolean>
- Direct Known Subclasses:
GenericTypeAwareAssigner.IsAssignableToVisitor.OfGenericArray
,GenericTypeAwareAssigner.IsAssignableToVisitor.OfSimpleType
- Enclosing class:
- GenericTypeAwareAssigner.IsAssignableToVisitor
@Enhance protected abstract static class GenericTypeAwareAssigner.IsAssignableToVisitor.OfManifestType extends java.lang.Object implements TypeDescription.Generic.Visitor<java.lang.Boolean>
An implementation of a assignability visitor that is applicable for any non-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 protected boolean
polymorphic
true
if the assignment is polymorphic.protected TypeDescription.Generic
typeDescription
The type being assigned to another type.
-
Constructor Summary
Constructors Modifier Constructor Description protected
OfManifestType(TypeDescription.Generic typeDescription, boolean polymorphic)
Creates a new visitor for a manifest type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.type.TypeDescription.Generic.Visitor
onGenericArray, onNonGenericType, onParameterizedType
-
-
-
-
Field Detail
-
typeDescription
protected final TypeDescription.Generic typeDescription
The type being assigned to another type.
-
polymorphic
protected final boolean polymorphic
true
if the assignment is polymorphic.
-
-
Constructor Detail
-
OfManifestType
protected OfManifestType(TypeDescription.Generic typeDescription, boolean polymorphic)
Creates a new visitor for a manifest type.- Parameters:
typeDescription
- The type being assigned to another type.polymorphic
-true
if the assignment is polymorphic.
-
-
Method Detail
-
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.
-
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.
-
-