Package org.apache.poi.ss.formula.ptg
Class MultiplyPtg
- java.lang.Object
-
- org.apache.poi.ss.formula.ptg.Ptg
-
- org.apache.poi.ss.formula.ptg.OperationPtg
-
- org.apache.poi.ss.formula.ptg.ValueOperatorPtg
-
- org.apache.poi.ss.formula.ptg.MultiplyPtg
-
- All Implemented Interfaces:
Serializable,Duplicatable,GenericRecord
public final class MultiplyPtg extends ValueOperatorPtg
Implements the standard mathematical multiplication "*"- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static MultiplyPtginstancestatic bytesid-
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
-
-
Constructor Summary
Constructors Constructor Description MultiplyPtg(LittleEndianInput in, SpreadsheetVersion version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiplyPtgcopy()intgetNumberOfOperands()The number of operands expected by the operationsbytegetSid()intgetSize(SpreadsheetVersion version)booleanisOperator()voidsetOperator(boolean b)StringtoFormulaString(String[] operands)returns a string representation of the operations the length of the input array should equal the number returned byvoidwrite(LittleEndianOutput out, SpreadsheetVersion version)-
Methods inherited from class org.apache.poi.ss.formula.ptg.ValueOperatorPtg
getDefaultOperandClass, isBaseToken, toFormulaString
-
Methods inherited from class org.apache.poi.ss.formula.ptg.OperationPtg
getGenericProperties, 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
-
instance
public static final MultiplyPtg instance
-
-
Constructor Detail
-
MultiplyPtg
public MultiplyPtg(LittleEndianInput in, SpreadsheetVersion version)
-
-
Method Detail
-
getSid
public byte getSid()
-
getSize
public int getSize(SpreadsheetVersion version)
- Overrides:
getSizein classValueOperatorPtg- Returns:
- the encoded length of this Ptg, including the initial Ptg type identifier byte.
-
getNumberOfOperands
public int getNumberOfOperands()
Description copied from class:OperationPtgThe number of operands expected by the operations- Specified by:
getNumberOfOperandsin classOperationPtg
-
toFormulaString
public String toFormulaString(String[] operands)
Description copied from class:OperationPtgreturns a string representation of the operations the length of the input array should equal the number returned by- Specified by:
toFormulaStringin classOperationPtg- See Also:
OperationPtg.getNumberOfOperands()
-
copy
public MultiplyPtg copy()
- Specified by:
copyin interfaceDuplicatable- Specified by:
copyin classPtg- Returns:
- a deep copy of the implementing class / instance
-
write
public void write(LittleEndianOutput out, SpreadsheetVersion version)
- Overrides:
writein classValueOperatorPtg
-
setOperator
public void setOperator(boolean b)
-
isOperator
public boolean isOperator()
-
-