public class CellRef
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
cellRangeSeparator |
protected static java.lang.String |
regexCellCharPart |
protected static java.lang.String |
regexCellDigitPart |
| Constructor and Description |
|---|
CellRef(CellRef ref,
FormulaPart parentFormula) |
CellRef(java.lang.String cellRef,
FormulaPart parentFormula) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getCellIndex() |
short |
getColNum() |
int |
getRowNum() |
java.lang.String |
getSheetName() |
static java.lang.String |
replaceFormulaPart(java.lang.String formulaPart,
java.lang.String refCell,
java.lang.String newCell)
Ref cell in a formula string is replaced with result cell enclosed with replacement markers to be able not to replace
already replaced cells
|
void |
setCellIndex(java.lang.Integer cellIndex) |
java.lang.String |
toString() |
void |
update(java.util.List newCellRefs) |
void |
update(java.lang.String newCellRef) |
protected static final java.lang.String regexCellCharPart
protected static final java.lang.String regexCellDigitPart
protected static java.lang.String cellRangeSeparator
public CellRef(java.lang.String cellRef,
FormulaPart parentFormula)
public CellRef(CellRef ref, FormulaPart parentFormula)
public java.lang.String getSheetName()
public int getRowNum()
public short getColNum()
public java.lang.Integer getCellIndex()
public void setCellIndex(java.lang.Integer cellIndex)
public void update(java.lang.String newCellRef)
public void update(java.util.List newCellRefs)
public static java.lang.String replaceFormulaPart(java.lang.String formulaPart,
java.lang.String refCell,
java.lang.String newCell)
formulaPart - - Part of the formula to replacerefCell - - Cell name to replacenewCell - - New cell name after replacementpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005-2014 jXLS Team. All Rights Reserved.