Class ErrPtg

    • Field Detail

      • NULL_INTERSECTION

        public static final ErrPtg NULL_INTERSECTION
        #NULL! - Intersection of two cell ranges is empty
      • DIV_ZERO

        public static final ErrPtg DIV_ZERO
        #DIV/0! - Division by zero
      • VALUE_INVALID

        public static final ErrPtg VALUE_INVALID
        #VALUE! - Wrong type of operand
      • REF_INVALID

        public static final ErrPtg REF_INVALID
        #REF! - Illegal or deleted cell reference
      • NAME_INVALID

        public static final ErrPtg NAME_INVALID
        #NAME? - Wrong function or range name
      • NUM_ERROR

        public static final ErrPtg NUM_ERROR
        #NUM! - Value range overflow
      • N_A

        public static final ErrPtg N_A
        #N/A - Argument or function not available
    • Method Detail

      • toFormulaString

        public String toFormulaString()
        Description copied from class: Ptg
        return a string representation of this token alone
        Specified by:
        toFormulaString in class Ptg
      • getSid

        public byte getSid()
        Specified by:
        getSid in class Ptg
        Returns:
        structure id of the parsed thing, or -1 if the record has no sid
      • getSize

        public int getSize​(SpreadsheetVersion version)
        Specified by:
        getSize in class Ptg
        Returns:
        the encoded length of this Ptg, including the initial Ptg type identifier byte.
      • getErrorCode

        public int getErrorCode()
      • valueOf

        public static ErrPtg valueOf​(int code)
      • copy

        public ErrPtg copy()
        Specified by:
        copy in interface Duplicatable
        Specified by:
        copy in class Ptg
        Returns:
        a deep copy of the implementing class / instance