Package org.apache.poi.ss.formula.ptg
Class ValueOperatorPtg
- java.lang.Object
-
- org.apache.poi.ss.formula.ptg.Ptg
-
- org.apache.poi.ss.formula.ptg.OperationPtg
-
- org.apache.poi.ss.formula.ptg.ValueOperatorPtg
-
- All Implemented Interfaces:
Serializable
,Duplicatable
,GenericRecord
- Direct Known Subclasses:
AddPtg
,ConcatPtg
,DividePtg
,EqualPtg
,GreaterEqualPtg
,GreaterThanPtg
,LessEqualPtg
,LessThanPtg
,MultiplyPtg
,NotEqualPtg
,PercentPtg
,PowerPtg
,SubtractPtg
,UnaryMinusPtg
,UnaryPlusPtg
public abstract class ValueOperatorPtg extends OperationPtg
Common superclass of all value operators. Subclasses include all unary and binary operators except for the reference operators (IntersectionPtg, RangePtg, UnionPtg)- See Also:
- Serialized Form
-
-
Field Summary
-
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 Modifier Constructor Description protected
ValueOperatorPtg()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getDefaultOperandClass()
int
getSize(SpreadsheetVersion version)
boolean
isBaseToken()
All OperatorPtg
s are base tokens (i.e.String
toFormulaString()
return a string representation of this token alonevoid
write(LittleEndianOutput out, SpreadsheetVersion version)
-
Methods inherited from class org.apache.poi.ss.formula.ptg.OperationPtg
getGenericProperties, getNumberOfOperands, toFormulaString, toInternalFormulaString
-
Methods inherited from class org.apache.poi.ss.formula.ptg.Ptg
copy, createPtg, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSize, getEncodedSizeWithoutArrayData, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, getSid, 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
-
-
-
-
Method Detail
-
isBaseToken
public final boolean isBaseToken()
All OperatorPtg
s are base tokens (i.e. are not RVA classified)- Specified by:
isBaseToken
in classPtg
- Returns:
false
if this token is classified as 'reference', 'value', or 'array'
-
getDefaultOperandClass
public final byte getDefaultOperandClass()
- Overrides:
getDefaultOperandClass
in classOperationPtg
-
write
public void write(LittleEndianOutput out, SpreadsheetVersion version)
-
getSize
public int getSize(SpreadsheetVersion version)
-
toFormulaString
public final String toFormulaString()
Description copied from class:Ptg
return a string representation of this token alone- Specified by:
toFormulaString
in classPtg
-
-