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 Stringdescribe()booleanisArray()booleanisAssignableBy(com.github.javaparser.resolution.types.ResolvedType other)booleanisNull()booleanisPrimitive()booleanisReferenceType()booleanisTypeVariable()-
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:
isArrayin interfacecom.github.javaparser.resolution.types.ResolvedType
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitivein interfacecom.github.javaparser.resolution.types.ResolvedType
-
isNull
public boolean isNull()
- Specified by:
isNullin interfacecom.github.javaparser.resolution.types.ResolvedType
-
isReferenceType
public boolean isReferenceType()
- Specified by:
isReferenceTypein interfacecom.github.javaparser.resolution.types.ResolvedType
-
describe
public String describe()
- Specified by:
describein interfacecom.github.javaparser.resolution.types.ResolvedType
-
isTypeVariable
public boolean isTypeVariable()
- Specified by:
isTypeVariablein interfacecom.github.javaparser.resolution.types.ResolvedType
-
isAssignableBy
public boolean isAssignableBy(com.github.javaparser.resolution.types.ResolvedType other)
- Specified by:
isAssignableByin interfacecom.github.javaparser.resolution.types.ResolvedType
-
-