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 java.lang.Object implements TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod
An implementation of a tokenized resolution of generic types of aMethodDescription
.
-
-
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
Fields Modifier and Type Field Description private java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken>
exceptionTypeTokens
A token describing the represented method's exception types.private java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken>
parameterTypeTokens
A token describing the represented method's parameter types.private TypePool.Default.LazyTypeDescription.GenericTypeToken
returnTypeToken
A token describing the represented method's return type.private java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable>
typeVariableTokens
A token describing the represented method's type variables.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Tokenized(TypePool.Default.LazyTypeDescription.GenericTypeToken returnTypeToken, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> exceptionTypeTokens, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> typeVariableTokens)
Creates a new tokenized resolution of aMethodDescription
's generic signatures.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeList.Generic
resolveExceptionTypes(java.util.List<java.lang.String> exceptionTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.TypeList.Generic
resolveParameterTypes(java.util.List<java.lang.String> parameterTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.TypeDescription.Generic
resolveReturnType(java.lang.String returnTypeDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, MethodDescription.InDefinedShape definingMethod)
Resolves the return type of the represented method.TypeList.Generic
resolveTypeVariables(TypePool typePool, TypeVariableSource typeVariableSource, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens)
Resolves the type variables of the represented element.
-
-
-
Field Detail
-
returnTypeToken
private final TypePool.Default.LazyTypeDescription.GenericTypeToken returnTypeToken
A token describing the represented method's return type.
-
parameterTypeTokens
private final java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens
A token describing the represented method's parameter types.
-
exceptionTypeTokens
private final java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> exceptionTypeTokens
A token describing the represented method's exception types.
-
typeVariableTokens
private final java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable> typeVariableTokens
A token describing the represented method's type variables.
-
-
Constructor Detail
-
Tokenized
protected Tokenized(TypePool.Default.LazyTypeDescription.GenericTypeToken returnTypeToken, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> parameterTypeTokens, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> exceptionTypeTokens, java.util.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 Detail
-
resolveReturnType
public TypeDescription.Generic resolveReturnType(java.lang.String returnTypeDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.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(java.util.List<java.lang.String> parameterTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.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(java.util.List<java.lang.String> exceptionTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.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, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.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.
-
-