public class NullType extends Object implements ResolvedType
Modifier and Type | Method and Description |
---|---|
String |
describe() |
boolean |
isArray() |
boolean |
isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.
|
boolean |
isNull()
Is this the null type?
|
boolean |
isReferenceType()
Can this be seen as a ReferenceTypeUsage?
|
boolean |
isTypeVariable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
arrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, asWildcard, erasure, isConstraint, isInferenceVariable, isNumericType, isPrimitive, isReference, isUnionType, isVoid, isWildcard, mention, replaceTypeVariables, replaceTypeVariables, solveGenericTypes, toDescriptor
public static final NullType INSTANCE
public boolean isArray()
isArray
in interface ResolvedType
public boolean isNull()
ResolvedType
isNull
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
Copyright © 2007–2023. All rights reserved.