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
- Direct Known Subclasses:
AbstractFunctionPtg
,IntersectionPtg
,RangePtg
,UnionPtg
,ValueOperatorPtg
defines a Ptg that is an operation instead of an operand
- Author:
- andy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
Fields inherited from class org.apache.poi.ss.formula.ptg.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
abstract int
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 byMethods inherited from class org.apache.poi.ss.formula.ptg.Ptg
createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, getSize, isBaseToken, readTokens, serializePtgs, setClass, toFormulaString, toString, write
-
Field Details
-
TYPE_UNARY
public static final int TYPE_UNARY- See Also:
-
TYPE_BINARY
public static final int TYPE_BINARY- See Also:
-
TYPE_FUNCTION
public static final int TYPE_FUNCTION- See Also:
-
-
Constructor Details
-
OperationPtg
public OperationPtg()
-
-
Method Details
-
toFormulaString
returns a string representation of the operations the length of the input array should equal the number returned by- See Also:
-
getNumberOfOperands
public abstract int getNumberOfOperands()The number of operands expected by the operations -
getDefaultOperandClass
public byte getDefaultOperandClass()- Specified by:
getDefaultOperandClass
in classPtg
-