Package org.apache.poi.ss.formula.ptg
Class FuncVarPtg
- java.lang.Object
-
- org.apache.poi.ss.formula.ptg.Ptg
-
- org.apache.poi.ss.formula.ptg.OperationPtg
-
- org.apache.poi.ss.formula.ptg.AbstractFunctionPtg
-
- org.apache.poi.ss.formula.ptg.FuncVarPtg
-
- All Implemented Interfaces:
Serializable
,Duplicatable
,GenericRecord
public final class FuncVarPtg extends AbstractFunctionPtg
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static byte
sid
static OperationPtg
SUM
Single instance of this token for 'sum() taking a single argument'-
Fields inherited from class org.apache.poi.ss.formula.ptg.AbstractFunctionPtg
FUNCTION_NAME_IF
-
Fields inherited from class org.apache.poi.ss.formula.ptg.OperationPtg
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARY
-
Fields inherited from class org.apache.poi.ss.formula.ptg.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FuncVarPtg
copy()
static FuncVarPtg
create(String pName, int numArgs)
Create a function ptg from a string tokenised by the parserstatic FuncVarPtg
create(LittleEndianInput in)
Creates new function pointer from a byte array usually called while reading an excel file.Map<String,Supplier<?>>
getGenericProperties()
byte
getSid()
int
getSize(SpreadsheetVersion version)
boolean
isExternal()
protected String
lookupName(short index)
void
write(LittleEndianOutput out, SpreadsheetVersion version)
-
Methods inherited from class org.apache.poi.ss.formula.ptg.AbstractFunctionPtg
getDefaultOperandClass, getFunctionIndex, getName, getNumberOfOperands, getParameterClass, isBaseToken, isBuiltInFunctionName, isExternalFunction, lookupIndex, lookupName, toFormulaString, toFormulaString, toInternalFormulaString
-
Methods inherited from class org.apache.poi.ss.formula.ptg.Ptg
createPtg, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSize, getEncodedSizeWithoutArrayData, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, readTokens, serializePtgs, serializePtgs, setClass, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
-
-
-
Field Detail
-
sid
public static final byte sid
- See Also:
- Constant Field Values
-
SUM
public static final OperationPtg SUM
Single instance of this token for 'sum() taking a single argument'
-
-
Method Detail
-
create
public static FuncVarPtg create(LittleEndianInput in)
Creates new function pointer from a byte array usually called while reading an excel file.
-
create
public static FuncVarPtg create(String pName, int numArgs)
Create a function ptg from a string tokenised by the parser
-
lookupName
protected String lookupName(short index)
- Overrides:
lookupName
in classAbstractFunctionPtg
-
write
public void write(LittleEndianOutput out, SpreadsheetVersion version)
-
getSid
public byte getSid()
-
getSize
public int getSize(SpreadsheetVersion version)
-
copy
public FuncVarPtg copy()
- Specified by:
copy
in interfaceDuplicatable
- Specified by:
copy
in classPtg
- Returns:
- a deep copy of the implementing class / instance
-
getGenericProperties
public Map<String,Supplier<?>> getGenericProperties()
- Specified by:
getGenericProperties
in interfaceGenericRecord
- Overrides:
getGenericProperties
in classAbstractFunctionPtg
-
isExternal
public boolean isExternal()
-
-