org.apache.poi.hssf.record.formula
Class FuncVarPtg
java.lang.Object
org.apache.poi.hssf.record.formula.Ptg
org.apache.poi.hssf.record.formula.OperationPtg
org.apache.poi.hssf.record.formula.AbstractFunctionPtg
org.apache.poi.hssf.record.formula.FuncVarPtg
- All Implemented Interfaces:
- java.lang.Cloneable
public final class FuncVarPtg
- extends AbstractFunctionPtg
- Author:
- Jason Height (jheight at chariot dot net dot au)
Field Summary |
static byte |
sid
|
Constructor Summary |
FuncVarPtg(LittleEndianInput in)
Creates new function pointer from a byte array
usually called while reading an excel file. |
FuncVarPtg(java.lang.String pName,
byte pNumOperands)
Create a function ptg from a string tokenised by the parser |
Method Summary |
int |
getNumberOfOperands()
The number of operands expected by the operations |
int |
getSize()
|
java.lang.String |
toString()
Overridden toString method to ensure object hash is not printed. |
void |
write(LittleEndianOutput out)
//@return the encoded length of this Ptg, not including the initial Ptg type identifier byte. |
Methods inherited from class org.apache.poi.hssf.record.formula.AbstractFunctionPtg |
getDefaultOperandClass, getFunctionIndex, getName, getParameterClass, isBaseToken, isBuiltInFunctionName, isExternalFunction, lookupIndex, lookupName, toFormulaString, toFormulaString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sid
public static final byte sid
- See Also:
- Constant Field Values
FuncVarPtg
public FuncVarPtg(LittleEndianInput in)
- Creates new function pointer from a byte array
usually called while reading an excel file.
FuncVarPtg
public FuncVarPtg(java.lang.String pName,
byte pNumOperands)
- Create a function ptg from a string tokenised by the parser
write
public void write(LittleEndianOutput out)
- Description copied from class:
Ptg
- //@return the encoded length of this Ptg, not including the initial Ptg type identifier byte.
- Specified by:
write
in class Ptg
getNumberOfOperands
public int getNumberOfOperands()
- Description copied from class:
OperationPtg
- The number of operands expected by the operations
- Specified by:
getNumberOfOperands
in class OperationPtg
getSize
public int getSize()
- Specified by:
getSize
in class AbstractFunctionPtg
- Returns:
- the encoded length of this Ptg, including the initial Ptg type identifier byte.
toString
public java.lang.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 class AbstractFunctionPtg
Copyright 2009 The Apache Software Foundation or
its licensors, as applicable.