Package net.bytebuddy.pool
Enum TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed
java.lang.Object
java.lang.Enum<TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed>
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed
- All Implemented Interfaces:
Serializable
,Comparable<TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed>
,java.lang.constant.Constable
,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.Malformed
extends Enum<TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed>
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 its generic signature is malformed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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 -
Constructor Summary
Constructors -
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.resolveFieldType
(String fieldTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, FieldDescription.InDefinedShape definingField) Resolves the field type of the represented field.resolveInterfaceTypes
(List<String> interfaceTypeDescriptors, TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, TypeDescription definingType) Resolves the generic interface types of the represented type.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.resolveRecordType
(String recordTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, RecordComponentDescription.InDefinedShape definingRecordComponent) Resolves a record component's type.resolveReturnType
(String returnTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, MethodDescription.InDefinedShape definingMethod) Resolves the return type of the represented method.resolveSuperClass
(String superClassDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypeDescription definingType) Resolves the generic super type of the represented type.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.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed INSTANCEThe singleton instance.
-
-
Constructor Details
-
Malformed
private Malformed()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
resolveSuperClass
public TypeDescription.Generic resolveSuperClass(String superClassDescriptor, TypePool typePool, Map<String, 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(List<String> interfaceTypeDescriptors, TypePool typePool, Map<Integer, Map<String, 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, 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.
-
resolveFieldType
public TypeDescription.Generic resolveFieldType(String fieldTypeDescriptor, TypePool typePool, Map<String, 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(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.
-
resolveRecordType
public TypeDescription.Generic resolveRecordType(String recordTypeDescriptor, TypePool typePool, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, RecordComponentDescription.InDefinedShape 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.
-