Package org.apache.poi.ss.formula.ptg
Class OperationPtg
- java.lang.Object
-
- org.apache.poi.ss.formula.ptg.Ptg
-
- org.apache.poi.ss.formula.ptg.OperationPtg
-
- All Implemented Interfaces:
Serializable
,Duplicatable
,GenericRecord
- Direct Known Subclasses:
AbstractFunctionPtg
,IntersectionPtg
,RangePtg
,UnionPtg
,ValueOperatorPtg
public abstract class OperationPtg extends Ptg
defines a Ptg that is an operation instead of an operand- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_BINARY
static int
TYPE_FUNCTION
static int
TYPE_UNARY
-
Fields inherited from class org.apache.poi.ss.formula.ptg.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OperationPtg()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description byte
getDefaultOperandClass()
Map<String,Supplier<?>>
getGenericProperties()
abstract int
getNumberOfOperands()
The number of operands expected by the operationsabstract String
toFormulaString(String[] operands)
returns a string representation of the operations the length of the input array should equal the number returned byString
toInternalFormulaString(String[] operands)
-
Methods inherited from class org.apache.poi.ss.formula.ptg.Ptg
copy, createPtg, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSize, getEncodedSizeWithoutArrayData, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, getSid, getSize, isBaseToken, readTokens, readTokens, serializePtgs, serializePtgs, setClass, toFormulaString, toString, write
-
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
-
TYPE_UNARY
public static final int TYPE_UNARY
- See Also:
- Constant Field Values
-
TYPE_BINARY
public static final int TYPE_BINARY
- See Also:
- Constant Field Values
-
TYPE_FUNCTION
public static final int TYPE_FUNCTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
toFormulaString
public abstract String toFormulaString(String[] operands)
returns a string representation of the operations the length of the input array should equal the number returned by- See Also:
getNumberOfOperands()
-
getNumberOfOperands
public abstract int getNumberOfOperands()
The number of operands expected by the operations
-
getDefaultOperandClass
public byte getDefaultOperandClass()
- Specified by:
getDefaultOperandClass
in classPtg
-
-