FormulaProcessor

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def createTargetCellRefListByColumn(targetFormulaCellRef: CellRef, targetCells: Iterable[CellRef], cellRefsToExclude: Set[CellRef]): Seq[CellRef]

Creates a list of target formula cell references

Creates a list of target formula cell references

def formulaContainsJointedCellRef(formula: String): Boolean

Checks if the formula contains jointed cell references Jointed references have format U_(cell1, cell2) e.g. $[SUM(U_(F8,F13))]

Checks if the formula contains jointed cell references Jointed references have format U_(cell1, cell2) e.g. $[SUM(U_(F8,F13))]

def getCellRefsFromJointedCellRef(jointedCellRef: String): List[String]

Parses a "jointed cell" reference and extracts individual cell references

Parses a "jointed cell" reference and extracts individual cell references

def getFormulaCellRefs(formula: String): List[String]

Parses a formula and returns a list of cell names used in it E.g. for formula "B4*(1+C4)" the returned list will contain "B4", "C4"

Parses a formula and returns a list of cell names used in it E.g. for formula "B4*(1+C4)" the returned list will contain "B4", "C4"

def getJointedCellRefs(formula: String): List[String]

Parses a formula to extract a list of so called "jointed cells" The jointed cells are cells combined with a special notation "U_(cell1, cell2)" into a single cell They are used in formulas like this "$[SUM(U_(F8,F13))]". Here the formula will use both F8 and F13 source cells to calculate the sum

Parses a formula to extract a list of so called "jointed cells" The jointed cells are cells combined with a special notation "U_(cell1, cell2)" into a single cell They are used in formulas like this "$[SUM(U_(F8,F13))]". Here the formula will use both F8 and F13 source cells to calculate the sum

def getStringPartsByPattern(str: String, pattern: Pattern): List[String]

Concrete fields

val regexAreaRef: String
val regexAreaRefPattern: Pattern
val regexCellRef: String
val regexCellRefPattern: Pattern
val regexSimpleCellRef: String