Package loci.poi.hssf.record.formula
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
- Author:
- andy, avik, Jason Height (jheight at chariot dot net dot au)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final byteprotected byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Objectclone()static StackcreateParsedExpressionTokens(short size, RecordInputStream in) static Ptgfinal byte[]getBytes()abstract bytebytereturns the class (REF/VALUE/ARRAY) for this Ptgabstract intgetSize()static intserializePtgStack(Stack expression, byte[] array, int offset) voidsetClass(byte thePtgClass) dump a debug representation (hexdump) to a stringabstract StringtoFormulaString(Workbook book) return a string representation of this token alonetoString()Overridden toString method to ensure object hash is not printed.abstract voidwriteBytes(byte[] array, int offset) write this Ptg to a byte array
-
Field Details
-
CLASS_REF
public static final byte CLASS_REF- See Also:
-
CLASS_VALUE
public static final byte CLASS_VALUE- See Also:
-
CLASS_ARRAY
public static final byte CLASS_ARRAY- See Also:
-
ptgClass
protected byte ptgClass
-
-
Constructor Details
-
Ptg
public Ptg()
-
-
Method Details
-
createParsedExpressionTokens
-
createPtg
-
serializePtgStack
-
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
return a string representation of this token alone -
toDebugString
dump a debug representation (hexdump) to a 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 -
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
-