Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized
java.lang.Object
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized
- All Implemented Interfaces:
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution
,TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod
- Enclosing interface:
- TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod
@Enhance
public static class TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized
extends Object
implements TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod
An implementation of a tokenized resolution of generic types of a
MethodDescription
.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<TypePool.Default.LazyTypeDescription.GenericTypeToken>
A token describing the represented method's exception types.private final List<TypePool.Default.LazyTypeDescription.GenericTypeToken>
A token describing the represented method's parameter types.private final TypePool.Default.LazyTypeDescription.GenericTypeToken
A token describing the represented method's return type.A token describing the represented method's type variables. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Tokenized
(TypePool.Default.LazyTypeDescription.GenericTypeToken returnTypeToken, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> exceptionTypeTokens, List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> typeVariableTokens) Creates a new tokenized resolution of aMethodDescription
's generic signatures. -
Method Summary
Modifier and TypeMethodDescriptionresolveExceptionTypes
(List<String> exceptionTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.resolveParameterTypes
(List<String> parameterTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.resolveReturnType
(String returnTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the return type of the represented method.resolveTypeVariables
(TypePool typePool, TypeVariableSource typeVariableSource, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, Map<Integer, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) Resolves the type variables of the represented element.
-
Field Details
-
returnTypeToken
A token describing the represented method's return type. -
parameterTypeTokens
A token describing the represented method's parameter types. -
exceptionTypeTokens
A token describing the represented method's exception types. -
typeVariableTokens
private final List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> typeVariableTokensA token describing the represented method's type variables.
-
-
Constructor Details
-
Tokenized
protected Tokenized(TypePool.Default.LazyTypeDescription.GenericTypeToken returnTypeToken, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> exceptionTypeTokens, List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> typeVariableTokens) Creates a new tokenized resolution of aMethodDescription
's generic signatures.- Parameters:
returnTypeToken
- A token describing the represented method's return type.parameterTypeTokens
- A token describing the represented method's parameter types.exceptionTypeTokens
- A token describing the represented method's exception types.typeVariableTokens
- A token describing the represented method's type variables.
-
-
Method Details
-
resolveReturnType
public TypeDescription.Generic resolveReturnType(String returnTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the return type of the represented method.- Specified by:
resolveReturnType
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod
- Parameters:
returnTypeDescriptor
- The descriptor of the raw return type.typePool
- The type pool to be used for locating non-generic type descriptions.annotationTokens
- A mapping of the return type's type annotation tokens.definingMethod
- The method that defines this return type.- Returns:
- A description of this type's generic return type.
-
resolveParameterTypes
public TypeList.Generic resolveParameterTypes(List<String> parameterTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.- Specified by:
resolveParameterTypes
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod
- Parameters:
parameterTypeDescriptors
- The descriptor of the raw parameter types.typePool
- The type pool to be used for locating non-generic type descriptions.annotationTokens
- A mapping of the parameter types' type annotation tokens by their indices.definingMethod
- The method that defines these parameter types.- Returns:
- A description of this type's generic interface types.
-
resolveExceptionTypes
public TypeList.Generic resolveExceptionTypes(List<String> exceptionTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the generic parameter types of the represented method.- Specified by:
resolveExceptionTypes
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod
- Parameters:
exceptionTypeDescriptors
- The descriptor of the raw exception types.typePool
- The type pool to be used for locating non-generic type descriptions.annotationTokens
- A mapping of the exception types' type annotation tokens by their indices.definingMethod
- The method that defines these exception types.- Returns:
- A description of this type's generic interface types.
-
resolveTypeVariables
public TypeList.Generic resolveTypeVariables(TypePool typePool, TypeVariableSource typeVariableSource, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, Map<Integer, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) Resolves the type variables of the represented element.- Specified by:
resolveTypeVariables
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution
- Parameters:
typePool
- The type pool to be used for locating non-generic type descriptions.typeVariableSource
- The type variable source to use for resolving type variables.annotationTokens
- A mapping of the type variables' type annotation tokens by their indices.boundAnnotationTokens
- A mapping of the type variables' bounds' type annotation tokens by their indices and each type variable's index.- Returns:
- A list describing the resolved generic types.
-