Class ParenthesisPtg


  • public class ParenthesisPtg
    extends OperationPtg
    While formula tokens are stored in RPN order and thus do not need parenthesis for precedence reasons, Parenthesis tokens ARE written to ensure that user entered parenthesis are displayed as-is on reading back Avik Sengupta <lists@aviksengupta.com> Andrew C. Oliver (acoliver at apache dot org)
    Author:
    Jason Height (jheight at chariot dot net dot au)
    • Constructor Detail

      • ParenthesisPtg

        public ParenthesisPtg()
    • Method Detail

      • writeBytes

        public void writeBytes​(byte[] array,
                               int offset)
        Description copied from class: Ptg
        write this Ptg to a byte array
        Specified by:
        writeBytes in class Ptg
      • getSize

        public int getSize()
        Specified by:
        getSize in class Ptg
      • toFormulaString

        public java.lang.String toFormulaString​(Workbook book)
        Description copied from class: Ptg
        return a string representation of this token alone
        Specified by:
        toFormulaString in class Ptg
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in class Ptg