Package loci.poi.hssf.record.formula
Class FuncPtg
- java.lang.Object
-
- loci.poi.hssf.record.formula.Ptg
-
- loci.poi.hssf.record.formula.OperationPtg
-
- loci.poi.hssf.record.formula.AbstractFunctionPtg
-
- loci.poi.hssf.record.formula.FuncPtg
-
public class FuncPtg extends AbstractFunctionPtg
- Author:
- aviks, Jason Height (jheight at chariot dot net dot au), Danny Mui (dmui at apache dot org) (Leftover handling)
-
-
Field Summary
Fields Modifier and Type Field Description static byte
sid
static int
SIZE
-
Fields inherited from class loci.poi.hssf.record.formula.AbstractFunctionPtg
ATTR_NAME, field_1_num_args, field_2_fnc_index, functionData, INDEX_EXTERNAL, paramClass, returnClass
-
Fields inherited from class loci.poi.hssf.record.formula.OperationPtg
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARY
-
Fields inherited from class loci.poi.hssf.record.formula.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass
-
-
Constructor Summary
Constructors Constructor Description FuncPtg(RecordInputStream in)
Creates new function pointer from a byte array usually called while reading an excel file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
int
getNumberOfOperands()
The number of operands expected by the operationsint
getSize()
String
toString()
Overridden toString method to ensure object hash is not printed.void
writeBytes(byte[] array, int offset)
write this Ptg to a byte array-
Methods inherited from class loci.poi.hssf.record.formula.AbstractFunctionPtg
getDefaultOperandClass, getFunctionIndex, getName, getParameterClass, getType, lookupIndex, lookupName, toFormulaString, toFormulaString
-
Methods inherited from class loci.poi.hssf.record.formula.Ptg
createParsedExpressionTokens, createPtg, getBytes, getPtgClass, serializePtgStack, setClass, toDebugString
-
-
-
-
Field Detail
-
sid
public static final byte sid
- See Also:
- Constant Field Values
-
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FuncPtg
public FuncPtg(RecordInputStream in)
Creates new function pointer from a byte array usually called while reading an excel file.
-
-
Method Detail
-
writeBytes
public void writeBytes(byte[] array, int offset)
Description copied from class:Ptg
write this Ptg to a byte array- Specified by:
writeBytes
in classAbstractFunctionPtg
-
getNumberOfOperands
public int getNumberOfOperands()
Description copied from class:OperationPtg
The number of operands expected by the operations- Specified by:
getNumberOfOperands
in classOperationPtg
-
getSize
public int getSize()
- Specified by:
getSize
in classAbstractFunctionPtg
-
toString
public String toString()
Description copied from class:Ptg
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 classAbstractFunctionPtg
-
-