Package org.apache.poi.ss.formula.ptg
Class RangePtg
- java.lang.Object
-
- org.apache.poi.ss.formula.ptg.Ptg
-
- org.apache.poi.ss.formula.ptg.OperationPtg
-
- org.apache.poi.ss.formula.ptg.RangePtg
-
- All Implemented Interfaces:
Serializable
,Duplicatable
,GenericRecord
public final class RangePtg extends OperationPtg
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static RangePtg
instance
static byte
sid
static int
SIZE
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RangePtg
copy()
int
getNumberOfOperands()
The number of operands expected by the operationsbyte
getSid()
int
getSize(SpreadsheetVersion version)
boolean
isBaseToken()
String
toFormulaString()
return a string representation of this token aloneString
toFormulaString(String[] operands)
implementation of method from OperationsPtgvoid
write(LittleEndianOutput out, SpreadsheetVersion version)
-
Methods inherited from class org.apache.poi.ss.formula.ptg.OperationPtg
getDefaultOperandClass, 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
-
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
-
sid
public static final byte sid
- See Also:
- Constant Field Values
-
instance
public static final RangePtg instance
-
-
Method Detail
-
isBaseToken
public final boolean isBaseToken()
- Specified by:
isBaseToken
in classPtg
- Returns:
false
if this token is classified as 'reference', 'value', or 'array'
-
getSid
public byte getSid()
-
getSize
public int getSize(SpreadsheetVersion version)
-
write
public void write(LittleEndianOutput out, SpreadsheetVersion version)
-
toFormulaString
public String toFormulaString()
Description copied from class:Ptg
return a string representation of this token alone- Specified by:
toFormulaString
in classPtg
-
toFormulaString
public String toFormulaString(String[] operands)
implementation of method from OperationsPtg- Specified by:
toFormulaString
in classOperationPtg
- See Also:
OperationPtg.getNumberOfOperands()
-
getNumberOfOperands
public int getNumberOfOperands()
Description copied from class:OperationPtg
The number of operands expected by the operations- Specified by:
getNumberOfOperands
in classOperationPtg
-
copy
public RangePtg copy()
- Specified by:
copy
in interfaceDuplicatable
- Specified by:
copy
in classPtg
- Returns:
- a deep copy of the implementing class / instance
-
-