Package net.bytebuddy.pool
Enum TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw
- java.lang.Object
-
- java.lang.Enum<TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw>
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw>
,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
- Enclosing interface:
- TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution
public static enum TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw extends java.lang.Enum<TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw> implements TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent
A resolution of a type's, method's or field's generic types if all of the represented element's are raw.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType
Represents a non-generic type that defines type annotations.-
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.ForField
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField.Tokenized
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent.Tokenized
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Raw()
-
Method Summary
All Methods Static 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.TypeDescription.Generic
resolveFieldType(java.lang.String fieldTypeDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, FieldDescription.InDefinedShape definingField)
Resolves the field type of the represented field.TypeList.Generic
resolveInterfaceTypes(java.util.List<java.lang.String> interfaceTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType)
Resolves the generic interface types of the represented type.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
resolveRecordType(java.lang.String recordTypeDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, RecordComponentDescription definingRecordComponent)
Resolves a record component's type.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.TypeDescription.Generic
resolveSuperClass(java.lang.String superClassDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType)
Resolves the generic super type of the represented type.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.static TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw c : TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
resolveSuperClass
public TypeDescription.Generic resolveSuperClass(java.lang.String superClassDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType)
Resolves the generic super type of the represented type.- Specified by:
resolveSuperClass
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType
- Parameters:
superClassDescriptor
- The descriptor of the raw super type.typePool
- The type pool to be used for locating non-generic type descriptions.annotationTokens
- A mapping of the super type's type annotation tokens.definingType
- The type that defines this super type.- Returns:
- A description of this type's generic super type.
-
resolveInterfaceTypes
public TypeList.Generic resolveInterfaceTypes(java.util.List<java.lang.String> interfaceTypeDescriptors, TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType)
Resolves the generic interface types of the represented type.- Specified by:
resolveInterfaceTypes
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType
- Parameters:
interfaceTypeDescriptors
- The descriptor of the raw interface types.typePool
- The type pool to be used for locating non-generic type descriptions.annotationTokens
- A mapping of the interface types' type annotation tokens by their indices.definingType
- The type that defines these interface type.- 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.
-
resolveFieldType
public TypeDescription.Generic resolveFieldType(java.lang.String fieldTypeDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, FieldDescription.InDefinedShape definingField)
Resolves the field type of the represented field.- Specified by:
resolveFieldType
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField
- Parameters:
fieldTypeDescriptor
- The descriptor of the raw field type.typePool
- The type pool to be used for locating non-generic type descriptions.annotationTokens
- A mapping of the represented types' type annotation tokens.definingField
- The field that defines this type.- Returns:
- A generic type representation of the field's type.
-
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.
-
resolveRecordType
public TypeDescription.Generic resolveRecordType(java.lang.String recordTypeDescriptor, TypePool typePool, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, RecordComponentDescription definingRecordComponent)
Resolves a record component's type.- Specified by:
resolveRecordType
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent
- Parameters:
recordTypeDescriptor
- The record component's descriptor.typePool
- The type pool to be used for locating non-generic type descriptions.annotationTokens
- A mapping of the represented types' type annotation tokens.definingRecordComponent
- The defining record component.- Returns:
- A generic type representation of the record component's type.
-
-