Class NullType
- java.lang.Object
-
- com.github.javaparser.symbolsolver.model.typesystem.NullType
-
- All Implemented Interfaces:
com.github.javaparser.resolution.types.ResolvedType
public class NullType extends Object implements com.github.javaparser.resolution.types.ResolvedType
This is a virtual type used to represent null values.- Author:
- Federico Tomassetti
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
describe()
boolean
isArray()
boolean
isAssignableBy(com.github.javaparser.resolution.types.ResolvedType other)
boolean
isNull()
boolean
isPrimitive()
boolean
isReferenceType()
boolean
isTypeVariable()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.types.ResolvedType
arrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, asWildcard, isConstraint, isReference, isUnionType, isVoid, isWildcard, mention, replaceTypeVariables, replaceTypeVariables
-
-
-
-
Field Detail
-
INSTANCE
public static final NullType INSTANCE
-
-
Method Detail
-
isArray
public boolean isArray()
- Specified by:
isArray
in interfacecom.github.javaparser.resolution.types.ResolvedType
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitive
in interfacecom.github.javaparser.resolution.types.ResolvedType
-
isNull
public boolean isNull()
- Specified by:
isNull
in interfacecom.github.javaparser.resolution.types.ResolvedType
-
isReferenceType
public boolean isReferenceType()
- Specified by:
isReferenceType
in interfacecom.github.javaparser.resolution.types.ResolvedType
-
describe
public String describe()
- Specified by:
describe
in interfacecom.github.javaparser.resolution.types.ResolvedType
-
isTypeVariable
public boolean isTypeVariable()
- Specified by:
isTypeVariable
in interfacecom.github.javaparser.resolution.types.ResolvedType
-
isAssignableBy
public boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType other)
- Specified by:
isAssignableBy
in interfacecom.github.javaparser.resolution.types.ResolvedType
-
-