public enum ResolvedPrimitiveType extends Enum<ResolvedPrimitiveType> implements ResolvedType
| Enum Constant and Description |
|---|
BOOLEAN |
BYTE |
CHAR |
DOUBLE |
FLOAT |
INT |
LONG |
SHORT |
| Modifier and Type | Method and Description |
|---|---|
ResolvedPrimitiveType |
asPrimitive() |
ResolvedPrimitiveType |
bnp(ResolvedPrimitiveType other) |
static ResolvedType |
byName(String name) |
String |
describe() |
String |
getBoxTypeQName() |
static ResolvedPrimitiveType[] |
getNumericPrimitiveTypes() |
boolean |
in(ResolvedPrimitiveType[] types) |
boolean |
isArray()
Does this type represent an array?
|
boolean |
isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.
|
boolean |
isBoolean()
Is this a boolean type?
|
boolean |
isNumeric() |
boolean |
isPrimitive()
Is this a primitive type?
|
boolean |
isReferenceType()
Can this be seen as a ReferenceTypeUsage?
In other words: is this a reference to a class, an interface or an enum?
|
boolean |
isTypeVariable() |
String |
toString() |
static ResolvedPrimitiveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResolvedPrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfarrayLevel, asArrayType, asConstraintType, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, asWildcard, isConstraint, isNull, isReference, isUnionType, isVoid, isWildcard, mention, replaceTypeVariables, replaceTypeVariablespublic static final ResolvedPrimitiveType BYTE
public static final ResolvedPrimitiveType SHORT
public static final ResolvedPrimitiveType CHAR
public static final ResolvedPrimitiveType INT
public static final ResolvedPrimitiveType LONG
public static final ResolvedPrimitiveType BOOLEAN
public static final ResolvedPrimitiveType FLOAT
public static final ResolvedPrimitiveType DOUBLE
public static ResolvedPrimitiveType[] values()
for (ResolvedPrimitiveType c : ResolvedPrimitiveType.values()) System.out.println(c);
public static ResolvedPrimitiveType 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 ResolvedType byName(String name)
public static ResolvedPrimitiveType[] getNumericPrimitiveTypes()
public String toString()
toString in class Enum<ResolvedPrimitiveType>public ResolvedPrimitiveType asPrimitive()
asPrimitive in interface ResolvedTypepublic boolean isArray()
ResolvedTypeisArray in interface ResolvedTypepublic boolean isPrimitive()
ResolvedTypeisPrimitive in interface ResolvedTypepublic boolean isReferenceType()
ResolvedTypeisReferenceType in interface ResolvedTypepublic String describe()
describe in interface ResolvedTypepublic boolean isTypeVariable()
isTypeVariable in interface ResolvedTypepublic boolean isAssignableBy(ResolvedType other)
ResolvedTypeisAssignableBy in interface ResolvedTypepublic String getBoxTypeQName()
public boolean isNumeric()
public boolean isBoolean()
public ResolvedPrimitiveType bnp(ResolvedPrimitiveType other)
public boolean in(ResolvedPrimitiveType[] types)
Copyright © 2007–2020. All rights reserved.