Package net.bytebuddy.pool
Enum Class TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard
java.lang.Object
java.lang.Enum<TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard>
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard
- All Implemented Interfaces:
Serializable
,Comparable<TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard>
,Constable
,TypePool.Default.LazyTypeDescription.GenericTypeToken
- Enclosing interface:
TypePool.Default.LazyTypeDescription.GenericTypeToken
public static enum TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard
extends Enum<TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard>
implements TypePool.Default.LazyTypeDescription.GenericTypeToken
A generic type token that represents an unbound wildcard.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A generic type representation of a generic unbound wildcard.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
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForRawType, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard, TypePool.Default.LazyTypeDescription.GenericTypeToken.LazyTokenList, TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken
COMPONENT_TYPE_PATH, EMPTY_TYPE_PATH, INDEXED_TYPE_DELIMITER, INNER_CLASS_PATH, WILDCARD_TYPE_PATH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the type path prefix that needs to be appended to the existing type path before any further navigation on the parameterized type.boolean
isPrimaryBound
(TypePool typePool) Determines if a generic type tokens represents a primary bound of a type variable.toGenericType
(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard INSTANCEThe singleton instance.
-
-
Constructor Details
-
ForUnboundWildcard
private ForUnboundWildcard()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
public static TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard valueOf(String name) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toGenericType
public TypeDescription.Generic toGenericType(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, @MaybeNull Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Transforms this token into a generic type representation.- Specified by:
toGenericType
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken
- Parameters:
typePool
- The type pool to be used for locating non-generic type descriptions.typeVariableSource
- The type variable source.typePath
- The type path of the resolved generic type.annotationTokens
- A mapping of the type's annotation tokens by their type path.- Returns:
- A description of the represented generic type.
-
isPrimaryBound
Determines if a generic type tokens represents a primary bound of a type variable. This method must only be invoked on types that represent aTypeDefinition.Sort.NON_GENERIC
,TypeDefinition.Sort.PARAMETERIZED
orTypeDefinition.Sort.VARIABLE
.- Specified by:
isPrimaryBound
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken
- Parameters:
typePool
- The type pool to use.- Returns:
true
if this token represents a primary bound.
-
getTypePathPrefix
Returns the type path prefix that needs to be appended to the existing type path before any further navigation on the parameterized type. This method must only be called on type tokens that represent parameterized type- Specified by:
getTypePathPrefix
in interfaceTypePool.Default.LazyTypeDescription.GenericTypeToken
- Returns:
- A type path segment that needs to be appended to the base type path before any further navigation on the parameterized type.
-