Class Parenthesis2Ptg

  • All Implemented Interfaces:
    Serializable, Duplicatable, GenericRecord

    public final class Parenthesis2Ptg
    extends ControlPtg
    This Ptg is for multiple area expression generally used in chart series and is only used for parsing and evaluation which will not be written out. It doesn't exist in any book.
    Since:
    3.9.13
    See Also:
    Serialized Form
    • Constructor Detail

      • Parenthesis2Ptg

        public Parenthesis2Ptg​(int operands)
    • Method Detail

      • 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.
      • toFormulaString

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

        public Ptg copy()
        Specified by:
        copy in interface Duplicatable
        Specified by:
        copy in class Ptg
        Returns:
        a deep copy of the implementing class / instance
      • 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
      • toFormulaString

        public String toFormulaString​(String[] operands)
      • getNumberOfOperands

        public int getNumberOfOperands()