Package net.bytebuddy.description.type
Class TypeDescription.Generic.Visitor.ForSignatureVisitor
java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.Visitor.ForSignatureVisitor
- All Implemented Interfaces:
TypeDescription.Generic.Visitor<org.objectweb.asm.signature.SignatureVisitor>
- Direct Known Subclasses:
TypeDescription.Generic.Visitor.ForSignatureVisitor.OfTypeArgument
- Enclosing interface:
TypeDescription.Generic.Visitor<T>
@Enhance
public static class TypeDescription.Generic.Visitor.ForSignatureVisitor
extends Object
implements TypeDescription.Generic.Visitor<org.objectweb.asm.signature.SignatureVisitor>
Visits a generic type and appends the discovered type to the supplied signature visitor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Visits a parameter while visiting a generic type for delegating discoveries to a signature visitor.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.Generalizing, 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
FieldsModifier and TypeFieldDescriptionprivate static final int
Index of aString
's only character to improve code readability.protected final org.objectweb.asm.signature.SignatureVisitor
The signature visitor that receives the discovered generic type. -
Constructor Summary
ConstructorsConstructorDescriptionForSignatureVisitor
(org.objectweb.asm.signature.SignatureVisitor signatureVisitor) Creates a new visitor for the given signature visitor. -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.signature.SignatureVisitor
onGenericArray
(TypeDescription.Generic genericArray) Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).org.objectweb.asm.signature.SignatureVisitor
onNonGenericType
(TypeDescription.Generic typeDescription) Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC
).private void
onOwnableType
(TypeDescription.Generic ownableType) Visits a type which might define an owner type.org.objectweb.asm.signature.SignatureVisitor
onParameterizedType
(TypeDescription.Generic parameterizedType) Visits a parameterized type (TypeDefinition.Sort.PARAMETERIZED
).org.objectweb.asm.signature.SignatureVisitor
onTypeVariable
(TypeDescription.Generic typeVariable) Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).org.objectweb.asm.signature.SignatureVisitor
onWildcard
(TypeDescription.Generic wildcard) Visits a wildcard (TypeDefinition.Sort.WILDCARD
).
-
Field Details
-
ONLY_CHARACTER
private static final int ONLY_CHARACTERIndex of aString
's only character to improve code readability.- See Also:
-
signatureVisitor
protected final org.objectweb.asm.signature.SignatureVisitor signatureVisitorThe signature visitor that receives the discovered generic type.
-
-
Constructor Details
-
ForSignatureVisitor
public ForSignatureVisitor(org.objectweb.asm.signature.SignatureVisitor signatureVisitor) Creates a new visitor for the given signature visitor.- Parameters:
signatureVisitor
- The signature visitor that receives the discovered generic type.
-
-
Method Details
-
onGenericArray
public org.objectweb.asm.signature.SignatureVisitor onGenericArray(TypeDescription.Generic genericArray) Visits a generic array type (TypeDefinition.Sort.GENERIC_ARRAY
).- Specified by:
onGenericArray
in interfaceTypeDescription.Generic.Visitor<org.objectweb.asm.signature.SignatureVisitor>
- Parameters:
genericArray
- The generic array type.- Returns:
- The visitor's return value.
-
onWildcard
Visits a wildcard (TypeDefinition.Sort.WILDCARD
).- Specified by:
onWildcard
in interfaceTypeDescription.Generic.Visitor<org.objectweb.asm.signature.SignatureVisitor>
- Parameters:
wildcard
- The wildcard.- Returns:
- The visitor's return value.
-
onParameterizedType
public org.objectweb.asm.signature.SignatureVisitor onParameterizedType(TypeDescription.Generic parameterizedType) Visits a parameterized type (TypeDefinition.Sort.PARAMETERIZED
).- Specified by:
onParameterizedType
in interfaceTypeDescription.Generic.Visitor<org.objectweb.asm.signature.SignatureVisitor>
- Parameters:
parameterizedType
- The generic array type.- Returns:
- The visitor's return value.
-
onOwnableType
Visits a type which might define an owner type.- Parameters:
ownableType
- The visited generic type.
-
onTypeVariable
public org.objectweb.asm.signature.SignatureVisitor onTypeVariable(TypeDescription.Generic typeVariable) Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).- Specified by:
onTypeVariable
in interfaceTypeDescription.Generic.Visitor<org.objectweb.asm.signature.SignatureVisitor>
- Parameters:
typeVariable
- The generic array type.- Returns:
- The visitor's return value.
-
onNonGenericType
public org.objectweb.asm.signature.SignatureVisitor onNonGenericType(TypeDescription.Generic typeDescription) Visits a non-generic type (TypeDefinition.Sort.NON_GENERIC
).- Specified by:
onNonGenericType
in interfaceTypeDescription.Generic.Visitor<org.objectweb.asm.signature.SignatureVisitor>
- Parameters:
typeDescription
- The non-generic type.- Returns:
- The visitor's return value.
-