Package org.apache.poi.ss.formula
Class LazyRefEval
- java.lang.Object
-
- org.apache.poi.ss.formula.eval.RefEvalBase
-
- org.apache.poi.ss.formula.LazyRefEval
-
- All Implemented Interfaces:
HyperlinkEval
,RefEval
,ValueEval
,SheetRange
public final class LazyRefEval extends RefEvalBase implements HyperlinkEval
Provides Lazy Evaluation to a 3D Reference
-
-
Constructor Summary
Constructors Constructor Description LazyRefEval(int rowIndex, int columnIndex, boolean rowRel, boolean colRel, SheetRangeEvaluator sre)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBookName()
Hyperlink
getHyperlink()
Returns the associated hyperlink if this ValueEval is a label of the HYPERLINK function.ValueEval
getInnerValueEval(int sheetIndex)
String
getLastSheetName()
SheetRangeEvaluator
getRefEvaluator()
String
getSheetName()
boolean
isFiltered()
boolean
isHidden()
boolean
isRowHidden()
boolean
isSubTotal()
AreaEval
offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx)
Creates anAreaEval
offset by a relative amount from this RefEvalvoid
setHyperlink(Hyperlink hyperlink)
Sets the associated hyperlink if this ValueEval is a label of the HYPERLINK function.String
toString()
-
Methods inherited from class org.apache.poi.ss.formula.eval.RefEvalBase
getColumn, getFirstSheetIndex, getLastSheetIndex, getNumberOfSheets, getRow, isColRelative, isRowRelative
-
-
-
-
Constructor Detail
-
LazyRefEval
public LazyRefEval(int rowIndex, int columnIndex, boolean rowRel, boolean colRel, SheetRangeEvaluator sre)
-
-
Method Detail
-
getInnerValueEval
public ValueEval getInnerValueEval(int sheetIndex)
- Specified by:
getInnerValueEval
in interfaceRefEval
- Returns:
- the evaluated value of the cell referred to by this RefEval on the given sheet
-
offset
public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx)
Description copied from interface:RefEval
Creates anAreaEval
offset by a relative amount from this RefEval
-
isSubTotal
public boolean isSubTotal()
- Returns:
- true if the cell is a subtotal
-
isRowHidden
public boolean isRowHidden()
- Returns:
- whether the row at rowIndex is hidden
-
setHyperlink
public void setHyperlink(Hyperlink hyperlink)
Description copied from interface:HyperlinkEval
Sets the associated hyperlink if this ValueEval is a label of the HYPERLINK function.- Specified by:
setHyperlink
in interfaceHyperlinkEval
- Parameters:
hyperlink
- the associated hyperlink
-
getHyperlink
public Hyperlink getHyperlink()
Description copied from interface:HyperlinkEval
Returns the associated hyperlink if this ValueEval is a label of the HYPERLINK function.- Specified by:
getHyperlink
in interfaceHyperlinkEval
- Returns:
- the associated hyperlink.
-
isHidden
public boolean isHidden()
-
isFiltered
public boolean isFiltered()
-
getRefEvaluator
public SheetRangeEvaluator getRefEvaluator()
-
getBookName
public String getBookName()
-
getSheetName
public String getSheetName()
-
getLastSheetName
public String getLastSheetName()
-
-