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:
org.apache.poi.common.Duplicatable,GenericRecord
- Direct Known Subclasses:
AddPtg,ConcatPtg,DividePtg,EqualPtg,GreaterEqualPtg,GreaterThanPtg,LessEqualPtg,LessThanPtg,MultiplyPtg,NotEqualPtg,PercentPtg,PowerPtg,SubtractPtg,UnaryMinusPtg,UnaryPlusPtg
Common superclass of all value operators. Subclasses include all unary and
binary operators except for the reference operators (IntersectionPtg,
RangePtg, UnionPtg)
-
Field Summary
Fields inherited from class org.apache.poi.ss.formula.ptg.OperationPtg
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARYFields inherited from class org.apache.poi.ss.formula.ptg.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY -
Method Summary
Modifier and TypeMethodDescriptionfinal bytefinal intgetSize()final booleanAll OperatorPtgs are base tokens (i.e.final Stringreturn a string representation of this token alonevoidwrite(LittleEndianOutput out) Methods inherited from class org.apache.poi.ss.formula.ptg.OperationPtg
getGenericProperties, getNumberOfOperands, toFormulaStringMethods inherited from class org.apache.poi.ss.formula.ptg.Ptg
copy, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, getSid, readTokens, serializePtgs, setClass, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
Method Details
-
isBaseToken
public final boolean isBaseToken()All OperatorPtgs are base tokens (i.e. are not RVA classified)- Specified by:
isBaseTokenin classPtg- Returns:
falseif this token is classified as 'reference', 'value', or 'array'
-
getDefaultOperandClass
public final byte getDefaultOperandClass()- Overrides:
getDefaultOperandClassin classOperationPtg
-
write
-
getSize
public final int getSize() -
toFormulaString
Description copied from class:Ptgreturn a string representation of this token alone- Specified by:
toFormulaStringin classPtg
-