public static enum TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType extends Enum<TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType> implements TypePool.Default.LazyTypeDescription.GenericTypeToken
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.LazyPrimitiveType
A representation of a lazy primitive type.
|
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 and Description |
|---|
BOOLEAN
The generic type token describing the
boolean type. |
BYTE
The generic type token describing the
byte type. |
CHAR
The generic type token describing the
char type. |
DOUBLE
The generic type token describing the
double type. |
FLOAT
The generic type token describing the
float type. |
INTEGER
The generic type token describing the
int type. |
LONG
The generic type token describing the
long type. |
SHORT
The generic type token describing the
short type. |
VOID
The generic type token describing the
void type. |
COMPONENT_TYPE_PATH, EMPTY_TYPE_PATH, INDEXED_TYPE_DELIMITER, INNER_CLASS_PATH, WILDCARD_TYPE_PATH| Modifier and Type | Method and Description |
|---|---|
String |
getTypePathPrefix()
Returns 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.
|
static TypePool.Default.LazyTypeDescription.GenericTypeToken |
of(char descriptor)
Resolves a generic type token of a primitive type.
|
TypeDescription.Generic |
toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens)
Transforms this token into a generic type representation.
|
static TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType BOOLEAN
boolean type.public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType BYTE
byte type.public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType SHORT
short type.public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType CHAR
char type.public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType INTEGER
int type.public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType LONG
long type.public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType FLOAT
float type.public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType DOUBLE
double type.public static final TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType VOID
void type.public static TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType[] values()
for (TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType c : TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.values()) System.out.println(c);
public static TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TypePool.Default.LazyTypeDescription.GenericTypeToken of(char descriptor)
descriptor - The descriptor of the primitive type.public TypeDescription.Generic toGenericType(TypePool typePool, TypeVariableSource typeVariableSource, String typePath, Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens)
toGenericType in interface TypePool.Default.LazyTypeDescription.GenericTypeTokentypePool - 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.public boolean isPrimaryBound(TypePool typePool)
Sort#NON_GENERIC,
Sort#PARAMETERIZED or Sort#VARIABLE.isPrimaryBound in interface TypePool.Default.LazyTypeDescription.GenericTypeTokentypePool - The type pool to use.true if this token represents a primary bound.public String getTypePathPrefix()
getTypePathPrefix in interface TypePool.Default.LazyTypeDescription.GenericTypeTokenCopyright © 2014–2019. All rights reserved.