Package loci.poi.hssf.record.formula
Class FuncVarPtg
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.FuncVarPtg
- Author:
- Jason Height (jheight at chariot dot net dot au)
-
Field Summary
FieldsFields inherited from class loci.poi.hssf.record.formula.AbstractFunctionPtg
ATTR_NAME, field_1_num_args, field_2_fnc_index, functionData, INDEX_EXTERNAL, paramClass, returnClassFields inherited from class loci.poi.hssf.record.formula.OperationPtg
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARYFields inherited from class loci.poi.hssf.record.formula.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass -
Constructor Summary
ConstructorsConstructorDescriptionFuncVarPtg(String pName, byte pNumOperands) Create a function ptg from a string tokenised by the parserCreates new function pointer from a byte array usually called while reading an excel file. -
Method Summary
Modifier and TypeMethodDescriptionclone()intThe number of operands expected by the operationsintgetSize()toString()Overridden toString method to ensure object hash is not printed.voidwriteBytes(byte[] array, int offset) write this Ptg to a byte arrayMethods inherited from class loci.poi.hssf.record.formula.AbstractFunctionPtg
getDefaultOperandClass, getFunctionIndex, getName, getParameterClass, getType, lookupIndex, lookupName, toFormulaString, toFormulaStringMethods inherited from class loci.poi.hssf.record.formula.Ptg
createParsedExpressionTokens, createPtg, getBytes, getPtgClass, serializePtgStack, setClass, toDebugString
-
Field Details
-
sid
public static final byte sid- See Also:
-
-
Constructor Details
-
FuncVarPtg
Creates new function pointer from a byte array usually called while reading an excel file. -
FuncVarPtg
Create a function ptg from a string tokenised by the parser
-
-
Method Details
-
writeBytes
public void writeBytes(byte[] array, int offset) Description copied from class:Ptgwrite this Ptg to a byte array- Specified by:
writeBytesin classAbstractFunctionPtg
-
getNumberOfOperands
public int getNumberOfOperands()Description copied from class:OperationPtgThe number of operands expected by the operations- Specified by:
getNumberOfOperandsin classOperationPtg
-
clone
-
getSize
public int getSize()- Specified by:
getSizein classAbstractFunctionPtg
-
toString
Description copied from class:PtgOverridden 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:
toStringin classAbstractFunctionPtg
-