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 classA parser for a generic field signature.protected static classA parser for a generic method signature.protected static classA parser for a generic field signature.protected static classA parser for a generic type signature.Nested classes/interfaces inherited from interface TypePool.Default.GenericTypeRegistrant
TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor -
Field Summary
FieldsModifier and TypeFieldDescriptionThe bounds of the currently constructed type.protected StringThe 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 voidCollects 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.voidRegisters a discovered generic type token.abstract Tresolve()Completes the current resolution.org.objectweb.asm.signature.SignatureVisitorvoidorg.objectweb.asm.signature.SignatureVisitorMethods inherited from class 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:
visitClassBoundin classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
visitInterfaceBound
public org.objectweb.asm.signature.SignatureVisitor visitInterfaceBound()- Overrides:
visitInterfaceBoundin classTypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
-
register
Registers a discovered generic type token.- Specified by:
registerin 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.
-