Package net.bytebuddy.pool
Class TypePool.Default.GenericTypeExtractor
java.lang.Object
org.objectweb.asm.signature.SignatureVisitor
net.bytebuddy.pool.TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
net.bytebuddy.pool.TypePool.Default.GenericTypeExtractor
- All Implemented Interfaces:
TypePool.Default.GenericTypeRegistrant
- Enclosing class:
TypePool.Default
protected static class TypePool.Default.GenericTypeExtractor
extends TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
implements TypePool.Default.GenericTypeRegistrant
A generic type extractor allows for an iterative extraction of generic type information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classTypePool.Default.GenericTypeExtractor.ForSignature<T extends TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution>A signature visitor for extracting a generic type resolution.protected static interfaceAn incompleteTypePool.Default.LazyTypeDescription.GenericTypeToken.Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.GenericTypeRegistrant
TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe nesting depth of the type that is visited by this extractor where a value of0indicates a type that is not nested within another type.private final TypePool.Default.GenericTypeRegistrantA registrant that receives any discovered type.The current token that is in the process of creation.Fields inherited from class org.objectweb.asm.signature.SignatureVisitor
api, EXTENDS, INSTANCEOF, SUPER -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGenericTypeExtractor(TypePool.Default.GenericTypeRegistrant genericTypeRegistrant) Creates a new generic type extractor for a type that is not nested within another type.protectedGenericTypeExtractor(TypePool.Default.GenericTypeRegistrant genericTypeRegistrant, int depth) Creates a new generic type extractor. -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(TypePool.Default.LazyTypeDescription.GenericTypeToken componentTypeToken) Registers a discovered generic type token.org.objectweb.asm.signature.SignatureVisitorvoidvisitBaseType(char descriptor) voidvisitClassType(String name) voidvisitEnd()voidvisitInnerClassType(String name) voidorg.objectweb.asm.signature.SignatureVisitorvisitTypeArgument(char wildcard) voidvisitTypeVariable(String name) Methods inherited from class net.bytebuddy.pool.TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
visitClassBound, visitExceptionType, visitFormalTypeParameter, visitInterface, visitInterfaceBound, visitParameterType, visitReturnType, visitSuperclass
-
Field Details
-
genericTypeRegistrant
A registrant that receives any discovered type. -
depth
private final int depthThe nesting depth of the type that is visited by this extractor where a value of0indicates a type that is not nested within another type. -
incompleteToken
The current token that is in the process of creation.
-
-
Constructor Details
-
GenericTypeExtractor
Creates a new generic type extractor for a type that is not nested within another type.- Parameters:
genericTypeRegistrant- The target to receive the complete type.
-
GenericTypeExtractor
protected GenericTypeExtractor(TypePool.Default.GenericTypeRegistrant genericTypeRegistrant, int depth) Creates a new generic type extractor.- Parameters:
genericTypeRegistrant- The target to receive the complete type.depth- The nesting depth of the type that is visited by this extractor.
-
-
Method Details
-
visitBaseType
public void visitBaseType(char descriptor) - Overrides:
visitBaseTypein classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
visitTypeVariable
- Overrides:
visitTypeVariablein classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
visitArrayType
public org.objectweb.asm.signature.SignatureVisitor visitArrayType()- Overrides:
visitArrayTypein classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
register
Registers a discovered generic type token.- Specified by:
registerin interfaceTypePool.Default.GenericTypeRegistrant- Parameters:
componentTypeToken- The token to be registered.
-
visitClassType
- Overrides:
visitClassTypein classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
visitInnerClassType
- Overrides:
visitInnerClassTypein classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
visitTypeArgument
public void visitTypeArgument()- Overrides:
visitTypeArgumentin classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
visitTypeArgument
public org.objectweb.asm.signature.SignatureVisitor visitTypeArgument(char wildcard) - Overrides:
visitTypeArgumentin classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
visitEnd
public void visitEnd()- Overrides:
visitEndin classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-