public class ResolvedPrimitiveType extends Object implements ResolvedType
| Modifier and Type | Field and Description |
|---|---|
static List<ResolvedPrimitiveType> |
ALL |
static ResolvedPrimitiveType |
BOOLEAN |
static ResolvedPrimitiveType |
BYTE |
static ResolvedPrimitiveType |
CHAR |
static ResolvedPrimitiveType |
DOUBLE |
static ResolvedPrimitiveType |
FLOAT |
static ResolvedPrimitiveType |
INT |
static ResolvedPrimitiveType |
LONG |
static ResolvedPrimitiveType |
SHORT |
| Modifier and Type | Method and Description |
|---|---|
ResolvedPrimitiveType |
asPrimitive() |
static ResolvedType |
byName(String name) |
String |
describe() |
String |
getBoxTypeQName() |
boolean |
isArray()
Does this type represent an array?
|
boolean |
isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.
|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarrayLevel, 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 final List<ResolvedPrimitiveType> ALL
public static ResolvedType byName(String name)
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()
Copyright © 2007–2017. All rights reserved.