Package org.apache.poi.ss.formula.eval
Class RefEvalBase
- java.lang.Object
-
- org.apache.poi.ss.formula.eval.RefEvalBase
-
- All Implemented Interfaces:
RefEval
,ValueEval
,SheetRange
- Direct Known Subclasses:
LazyRefEval
public abstract class RefEvalBase extends Object implements RefEval
Common base class for implementors ofRefEval
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RefEvalBase(int onlySheetIndex, int rowIndex, int columnIndex)
protected
RefEvalBase(int firstSheetIndex, int lastSheetIndex, int rowIndex, int columnIndex, boolean rowRel, boolean colRel)
protected
RefEvalBase(SheetRange sheetRange, int rowIndex, int columnIndex, boolean rowRel, boolean colRel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
returns the zero based column index.int
getFirstSheetIndex()
returns the first sheet index this applies toint
getLastSheetIndex()
returns the last sheet index this applies to, which will be the same as the first for a 2D and many 3D referencesint
getNumberOfSheets()
returns the number of sheets this applies toint
getRow()
returns the zero based row index.boolean
isColRelative()
boolean
isRowRelative()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.ss.formula.eval.RefEval
getInnerValueEval, offset
-
-
-
-
Constructor Detail
-
RefEvalBase
protected RefEvalBase(SheetRange sheetRange, int rowIndex, int columnIndex, boolean rowRel, boolean colRel)
-
RefEvalBase
protected RefEvalBase(int firstSheetIndex, int lastSheetIndex, int rowIndex, int columnIndex, boolean rowRel, boolean colRel)
-
RefEvalBase
protected RefEvalBase(int onlySheetIndex, int rowIndex, int columnIndex)
-
-
Method Detail
-
getNumberOfSheets
public int getNumberOfSheets()
Description copied from interface:RefEval
returns the number of sheets this applies to- Specified by:
getNumberOfSheets
in interfaceRefEval
-
getFirstSheetIndex
public int getFirstSheetIndex()
Description copied from interface:RefEval
returns the first sheet index this applies to- Specified by:
getFirstSheetIndex
in interfaceRefEval
- Specified by:
getFirstSheetIndex
in interfaceSheetRange
-
getLastSheetIndex
public int getLastSheetIndex()
Description copied from interface:RefEval
returns the last sheet index this applies to, which will be the same as the first for a 2D and many 3D references- Specified by:
getLastSheetIndex
in interfaceRefEval
- Specified by:
getLastSheetIndex
in interfaceSheetRange
-
getRow
public final int getRow()
Description copied from interface:RefEval
returns the zero based row index.
-
getColumn
public final int getColumn()
Description copied from interface:RefEval
returns the zero based column index.
-
isRowRelative
public final boolean isRowRelative()
-
isColRelative
public final boolean isColRelative()
-
-