Package org.apache.poi.ss.formula.ptg
Class RefNPtg
- java.lang.Object
-
- org.apache.poi.ss.formula.ptg.Ptg
-
- org.apache.poi.ss.formula.ptg.OperandPtg
-
- org.apache.poi.ss.formula.ptg.RefPtgBase
-
- org.apache.poi.ss.formula.ptg.RefNPtg
-
- All Implemented Interfaces:
Serializable
,Duplicatable
,GenericRecord
public final class RefNPtg extends RefPtgBase
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static byte
sid
-
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 RefNPtg(RefNPtg other)
RefNPtg(LittleEndianInput in, SpreadsheetVersion version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RefNPtg
copy()
protected String
formatReferenceAsString()
byte
getSid()
int
getSize(SpreadsheetVersion version)
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.RefPtgBase
equals, getColumn, getDefaultOperandClass, getGenericProperties, getRow, hashCode, isColRelative, isRowRelative, readCoordinates, setColRelative, setColumn, setRow, setRowRelative, writeCoordinates
-
Methods inherited from class org.apache.poi.ss.formula.ptg.OperandPtg
isBaseToken
-
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, finalize, getClass, 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
-
-
Constructor Detail
-
RefNPtg
public RefNPtg(LittleEndianInput in, SpreadsheetVersion version)
-
RefNPtg
public RefNPtg(RefNPtg other)
-
-
Method Detail
-
getSid
public byte getSid()
-
formatReferenceAsString
protected final String formatReferenceAsString()
- Overrides:
formatReferenceAsString
in classRefPtgBase
-
copy
public RefNPtg copy()
- Specified by:
copy
in interfaceDuplicatable
- Specified by:
copy
in classOperandPtg
- Returns:
- a deep copy of the implementing class / instance
-
write
public void write(LittleEndianOutput out, 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
-
getSize
public final int getSize(SpreadsheetVersion version)
-
-