Package net.bytebuddy.pool
Class TypePool.Default.GenericTypeExtractor.ForSignature<T extends TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution>
java.lang.Object
org.objectweb.asm.signature.SignatureVisitor
net.bytebuddy.pool.TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
net.bytebuddy.pool.TypePool.Default.GenericTypeExtractor.ForSignature<T>
- Type Parameters:
T
- The type of the resolution this visitor extracts.
- All Implemented Interfaces:
TypePool.Default.GenericTypeRegistrant
- Direct Known Subclasses:
TypePool.Default.GenericTypeExtractor.ForSignature.OfMethod
,TypePool.Default.GenericTypeExtractor.ForSignature.OfType
- Enclosing class:
- TypePool.Default.GenericTypeExtractor
protected abstract static class TypePool.Default.GenericTypeExtractor.ForSignature<T extends TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution>
extends TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
implements TypePool.Default.GenericTypeRegistrant
A signature visitor for extracting a generic type resolution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A parser for a generic field signature.protected static class
A parser for a generic method signature.protected static class
A parser for a generic field signature.protected static class
A parser for a generic type signature.Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.GenericTypeRegistrant
TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe bounds of the currently constructed type.protected String
The name of the currently constructed type.The resolved type variable tokens.Fields inherited from class org.objectweb.asm.signature.SignatureVisitor
api, EXTENDS, INSTANCEOF, SUPER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Collects the currently constructed type.protected static <S extends TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution>
Sextract
(String genericSignature, TypePool.Default.GenericTypeExtractor.ForSignature<S> visitor) Applies an extraction of a generic signature given the supplied visitor.void
Registers a discovered generic type token.abstract T
resolve()
Completes the current resolution.org.objectweb.asm.signature.SignatureVisitor
void
org.objectweb.asm.signature.SignatureVisitor
Methods inherited from class net.bytebuddy.pool.TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
visitArrayType, visitBaseType, visitClassType, visitEnd, visitExceptionType, visitInnerClassType, visitInterface, visitParameterType, visitReturnType, visitSuperclass, visitTypeArgument, visitTypeArgument, visitTypeVariable
-
Field Details
-
typeVariableTokens
protected final List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> typeVariableTokensThe resolved type variable tokens. -
currentTypeParameter
The name of the currently constructed type. -
currentBounds
The bounds of the currently constructed type.
-
-
Constructor Details
-
ForSignature
public ForSignature()Creates a new signature visitor.
-
-
Method Details
-
extract
protected static <S extends TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution> S extract(String genericSignature, TypePool.Default.GenericTypeExtractor.ForSignature<S> visitor) Applies an extraction of a generic signature given the supplied visitor.- Type Parameters:
S
- The type of the generated resolution.- Parameters:
genericSignature
- The generic signature to interpret.visitor
- The visitor to apply.- Returns:
- The resolution of the supplied signature.
-
visitFormalTypeParameter
-
visitClassBound
public org.objectweb.asm.signature.SignatureVisitor visitClassBound()- Overrides:
visitClassBound
in classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
visitInterfaceBound
public org.objectweb.asm.signature.SignatureVisitor visitInterfaceBound()- Overrides:
visitInterfaceBound
in classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
register
Registers a discovered generic type token.- Specified by:
register
in interfaceTypePool.Default.GenericTypeRegistrant
- Parameters:
token
- The token to be registered.
-
collectTypeParameter
protected void collectTypeParameter()Collects the currently constructed type. -
resolve
Completes the current resolution.- Returns:
- The resolved generic signature.
-