Class 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
    • Field Detail

      • INSTANCE

        public static final NullType INSTANCE
    • Method Detail

      • isArray

        public boolean isArray()
        Specified by:
        isArray in interface com.github.javaparser.resolution.types.ResolvedType
      • isPrimitive

        public boolean isPrimitive()
        Specified by:
        isPrimitive in interface com.github.javaparser.resolution.types.ResolvedType
      • isNull

        public boolean isNull()
        Specified by:
        isNull in interface com.github.javaparser.resolution.types.ResolvedType
      • isReferenceType

        public boolean isReferenceType()
        Specified by:
        isReferenceType in interface com.github.javaparser.resolution.types.ResolvedType
      • describe

        public String describe()
        Specified by:
        describe in interface com.github.javaparser.resolution.types.ResolvedType
      • isTypeVariable

        public boolean isTypeVariable()
        Specified by:
        isTypeVariable in interface com.github.javaparser.resolution.types.ResolvedType
      • isAssignableBy

        public boolean isAssignableBy​(com.github.javaparser.resolution.types.ResolvedType other)
        Specified by:
        isAssignableBy in interface com.github.javaparser.resolution.types.ResolvedType