T
- The type of the resolution this visitor extracts.protected abstract static class TypePool.Default.GenericTypeExtractor.ForSignature<T extends TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution> extends TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor implements TypePool.Default.GenericTypeRegistrant
Modifier and Type | Class and Description |
---|---|
protected static class |
TypePool.Default.GenericTypeExtractor.ForSignature.OfField
A parser for a generic field signature.
|
protected static class |
TypePool.Default.GenericTypeExtractor.ForSignature.OfMethod
A parser for a generic method signature.
|
protected static class |
TypePool.Default.GenericTypeExtractor.ForSignature.OfRecordComponent
A parser for a generic field signature.
|
protected static class |
TypePool.Default.GenericTypeExtractor.ForSignature.OfType
A parser for a generic type signature.
|
TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
Modifier and Type | Field and Description |
---|---|
protected List<TypePool.Default.LazyTypeDescription.GenericTypeToken> |
currentBounds
The bounds of the currently constructed type.
|
protected String |
currentTypeParameter
The name of the currently constructed type.
|
protected List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> |
typeVariableTokens
The resolved type variable tokens.
|
api, EXTENDS, INSTANCEOF, SUPER
Constructor and Description |
---|
ForSignature()
Creates a new signature visitor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
collectTypeParameter()
Collects the currently constructed type.
|
protected static <S extends TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution> |
extract(String genericSignature,
TypePool.Default.GenericTypeExtractor.ForSignature<S> visitor)
Applies an extraction of a generic signature given the supplied visitor.
|
void |
register(TypePool.Default.LazyTypeDescription.GenericTypeToken token)
Registers a discovered generic type token.
|
abstract T |
resolve()
Completes the current resolution.
|
SignatureVisitor |
visitClassBound() |
void |
visitFormalTypeParameter(String name) |
SignatureVisitor |
visitInterfaceBound() |
visitArrayType, visitBaseType, visitClassType, visitEnd, visitExceptionType, visitInnerClassType, visitInterface, visitParameterType, visitReturnType, visitSuperclass, visitTypeArgument, visitTypeArgument, visitTypeVariable
protected final List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> typeVariableTokens
protected String currentTypeParameter
protected List<TypePool.Default.LazyTypeDescription.GenericTypeToken> currentBounds
protected static <S extends TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution> S extract(String genericSignature, TypePool.Default.GenericTypeExtractor.ForSignature<S> visitor)
S
- The type of the generated resolution.genericSignature
- The generic signature to interpret.visitor
- The visitor to apply.public void visitFormalTypeParameter(String name)
public SignatureVisitor visitClassBound()
visitClassBound
in class TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
public SignatureVisitor visitInterfaceBound()
visitInterfaceBound
in class TypePool.Default.GenericTypeRegistrant.RejectingSignatureVisitor
public void register(TypePool.Default.LazyTypeDescription.GenericTypeToken token)
register
in interface TypePool.Default.GenericTypeRegistrant
token
- The token to be registered.protected void collectTypeParameter()
public abstract T resolve()
Copyright © 2014–2020. All rights reserved.