Package org.apache.poi.ss.formula.ptg
Class RefPtgBase
- java.lang.Object
-
- org.apache.poi.ss.formula.ptg.Ptg
-
- org.apache.poi.ss.formula.ptg.OperandPtg
-
- org.apache.poi.ss.formula.ptg.RefPtgBase
-
- All Implemented Interfaces:
Serializable
,Duplicatable
,GenericRecord
public abstract class RefPtgBase extends OperandPtg
ReferencePtgBase - handles references (such as A1, A2, IA4)- See Also:
- Serialized Form
-
-
Field Summary
-
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
RefPtgBase()
protected
RefPtgBase(RefPtgBase other)
protected
RefPtgBase(CellReference c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
protected String
formatReferenceAsString()
int
getColumn()
byte
getDefaultOperandClass()
Map<String,Supplier<?>>
getGenericProperties()
int
getRow()
int
hashCode()
boolean
isColRelative()
boolean
isRowRelative()
protected void
readCoordinates(LittleEndianInput in, SpreadsheetVersion version)
void
setColRelative(boolean rel)
void
setColumn(int col)
void
setRow(int rowIndex)
void
setRowRelative(boolean rel)
protected void
writeCoordinates(LittleEndianOutput out, SpreadsheetVersion version)
-
Methods inherited from class org.apache.poi.ss.formula.ptg.OperandPtg
copy, isBaseToken
-
Methods inherited from class org.apache.poi.ss.formula.ptg.Ptg
createPtg, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSize, getEncodedSizeWithoutArrayData, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, getSid, getSize, readTokens, readTokens, serializePtgs, serializePtgs, setClass, toFormulaString, toString, write
-
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
-
-
-
-
Constructor Detail
-
RefPtgBase
protected RefPtgBase()
-
RefPtgBase
protected RefPtgBase(RefPtgBase other)
-
RefPtgBase
protected RefPtgBase(CellReference c)
-
-
Method Detail
-
readCoordinates
protected final void readCoordinates(LittleEndianInput in, SpreadsheetVersion version)
-
writeCoordinates
protected final void writeCoordinates(LittleEndianOutput out, SpreadsheetVersion version)
-
setRow
public final void setRow(int rowIndex)
-
getRow
public final int getRow()
- Returns:
- the row number as an int
-
isRowRelative
public final boolean isRowRelative()
-
setRowRelative
public final void setRowRelative(boolean rel)
-
isColRelative
public final boolean isColRelative()
-
setColRelative
public final void setColRelative(boolean rel)
-
setColumn
public final void setColumn(int col)
-
getColumn
public final int getColumn()
-
formatReferenceAsString
protected String formatReferenceAsString()
-
getDefaultOperandClass
public final byte getDefaultOperandClass()
- Specified by:
getDefaultOperandClass
in classPtg
-
-