org.apache.poi.hssf.record.formula
Class Ptg
java.lang.Object
|
+--org.apache.poi.hssf.record.formula.Ptg
- Direct Known Subclasses:
- Area3DPtg, AreaPtg, BoolPtg, ControlPtg, ExpPtg, IntPtg, MemErrPtg, MissingArgPtg, NamePtg, NumberPtg, OperationPtg, Ref3DPtg, ReferencePtg, StringPtg, UnknownPtg
- public abstract class Ptg
- extends java.lang.Object
- Author:
- andy, avik, Jason Height (jheight at chariot dot net dot au)
Constructor Summary |
Ptg()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_REF
public static final byte CLASS_REF
CLASS_VALUE
public static final byte CLASS_VALUE
CLASS_ARRAY
public static final byte CLASS_ARRAY
ptgClass
protected byte ptgClass
Ptg
public Ptg()
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(SheetReferences refs)
- return a string representation of this token alone
toDebugString
public java.lang.String toDebugString()
- dump a debug representation (hexdump) to a string
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
Copyright © 2003 Apache jakarta-poi project. All Rights Reserved.