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, wait
arrayLevel, asArrayType, asConstraintType, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, asWildcard, isConstraint, isNull, isReference, isUnionType, isVoid, isWildcard, mention, replaceTypeVariables, replaceTypeVariables
public 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 ResolvedType
public boolean isArray()
ResolvedType
isArray
in interface ResolvedType
public boolean isPrimitive()
ResolvedType
isPrimitive
in interface ResolvedType
public boolean isReferenceType()
ResolvedType
isReferenceType
in interface ResolvedType
public String describe()
describe
in interface ResolvedType
public boolean isTypeVariable()
isTypeVariable
in interface ResolvedType
public boolean isAssignableBy(ResolvedType other)
ResolvedType
isAssignableBy
in interface ResolvedType
public String getBoxTypeQName()
Copyright © 2007–2017. All rights reserved.