Top Description Fields Constructors Methods
org.apache.poi.ss.formula.ptg

public abstract Class OperationPtg

extends Ptg
Class Inheritance
Known Direct Subclasses
org.apache.poi.ss.formula.ptg.RangePtg, org.apache.poi.ss.formula.ptg.UnionPtg, org.apache.poi.ss.formula.ptg.ValueOperatorPtg, org.apache.poi.ss.formula.ptg.AbstractFunctionPtg, org.apache.poi.ss.formula.ptg.IntersectionPtg
Imports
java.util.Map, java.util.function.Supplier

defines a Ptg that is an operation instead of an operand

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
Inherited from org.apache.poi.ss.formula.ptg.Ptg:
CLASS_ARRAYCLASS_REFCLASS_VALUEEMPTY_PTG_ARRAY

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public byte
public Map<String, Supplier<?>>
public abstract int
getNumberOfOperands()

The number of operands expected by the operations

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

Inherited from org.apache.poi.ss.formula.ptg.Ptg:
copycreatePtgdoesFormulaReferToDeletedCellgetEncodedSizegetEncodedSizeWithoutArrayDatagetPtgClassgetRVATypegetSidgetSizeisBaseTokenreadTokensserializePtgssetClasstoFormulaStringtoStringwrite

Field Detail

TYPE_BINARYback to summary
public static final int TYPE_BINARY
TYPE_FUNCTIONback to summary
public static final int TYPE_FUNCTION
TYPE_UNARYback to summary
public static final int TYPE_UNARY

Constructor Detail

OperationPtgback to summary
protected OperationPtg()

Method Detail

getDefaultOperandClassback to summary
public byte getDefaultOperandClass()

Implements abstract org.apache.poi.ss.formula.ptg.Ptg.getDefaultOperandClass.

Annotations
@Override
getGenericPropertiesback to summary
public Map<String, Supplier<?>> getGenericProperties()

Implements org.apache.poi.common.usermodel.GenericRecord.getGenericProperties.

Annotations
@Override
getNumberOfOperandsback to summary
public abstract int getNumberOfOperands()

The number of operands expected by the operations

toFormulaStringback to summary
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