Class Ptg

java.lang.Object
loci.poi.hssf.record.formula.Ptg
Direct Known Subclasses:
Area3DPtg, AreaPtg, ArrayPtg, BoolPtg, ControlPtg, ErrPtg, ExpPtg, IntPtg, MemAreaPtg, MissingArgPtg, NamePtg, NameXPtg, NumberPtg, OperationPtg, Ref3DPtg, ReferencePtg, RefErrorPtg, StringPtg, UnknownPtg

public abstract class Ptg extends Object
Author:
andy, avik, Jason Height (jheight at chariot dot net dot au)
  • Field Details

  • Constructor Details

    • Ptg

      public Ptg()
  • Method Details

    • createParsedExpressionTokens

      public static Stack createParsedExpressionTokens(short size, RecordInputStream in)
    • createPtg

      public static Ptg createPtg(RecordInputStream in)
    • serializePtgStack

      public static int serializePtgStack(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 String toFormulaString(Workbook book)
      return a string representation of this token alone
    • toDebugString

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

      public 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 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 Object clone()
      Overrides:
      clone in class Object