org.apache.poi.hssf.record.formula
Class Ptg

java.lang.Object
  |
  +--org.apache.poi.hssf.record.formula.Ptg
Direct Known Subclasses:
Area3DPtg, AreaPtg, ExpPtg, IntPtg, MemErrPtg, NamePtg, NumberPtg, OperationPtg, Ref3DPtg, ReferencePtg, UnknownPtg

public abstract class Ptg
extends java.lang.Object

Author:
andy

Constructor Summary
Ptg()
           
 
Method Summary
static Ptg createPtg(byte[] data, int offset)
          convert infix order ptg list to rpn order ptg list
 byte[] getBytes()
           
abstract  int getSize()
           
 java.lang.String toDebugString()
          dump a debug representation (hexdump) to a strnig
abstract  java.lang.String toFormulaString()
          return a string representation of this token alone
abstract  void writeBytes(byte[] array, int offset)
          write this Ptg to a byte array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ptg

public Ptg()
Method Detail

createPtg

public static Ptg createPtg(byte[] data,
                            int offset)
convert infix order ptg list to rpn order ptg list
Parameters:
infixPtgs - List of ptgs in infix order
Returns:
List ptgs in RPN order

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()
return a string representation of this token alone

toDebugString

public java.lang.String toDebugString()
dump a debug representation (hexdump) to a strnig

jakarta-poi 1.6.0-dev

Copyright © 2002 Apache jakarta-poi project. All Rights Reserved.