Class Ptg

    • Constructor Detail

      • Ptg

        public Ptg()
    • Method Detail

      • createParsedExpressionTokens

        public static java.util.Stack createParsedExpressionTokens​(short size,
                                                                   RecordInputStream in)
      • serializePtgStack

        public static int serializePtgStack​(java.util.Stack expression,
                                            byte[] array,
                                            int offset)
      • getSize

        public abstract int getSize()
      • getBytes

        public final byte[] getBytes()
      • writeBytes

        public abstract void writeBytes​(byte[] array,
                                        int offset)
        write this Ptg to a byte array
      • toFormulaString

        public abstract java.lang.String toFormulaString​(Workbook book)
        return a string representation of this token alone
      • toDebugString

        public java.lang.String toDebugString()
        dump a debug representation (hexdump) to a string
      • toString

        public java.lang.String toString()
        Overridden toString method to ensure object hash is not printed. This helps get rid of gratuitous diffs when comparing two dumps Subclasses may output more relevant information by overriding this method
        Overrides:
        toString in class java.lang.Object
      • setClass

        public void setClass​(byte thePtgClass)
      • getPtgClass

        public byte getPtgClass()
        returns the class (REF/VALUE/ARRAY) for this Ptg
      • getDefaultOperandClass

        public abstract byte getDefaultOperandClass()
      • clone

        public abstract java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object