|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jett.parser.FormulaParser
public class FormulaParser
A FormulaParser parses formulas in formula text, extracting out
all cell references. A cell reference consists of an optional sheet name
(optionally enclosed in single quotes) followed by an exclamation ("!"),
followed by a legal cell reference (alpha-number format), optionally
followed by a default value clause, which is two pipes followed by the
default value: "||value".
| Constructor Summary | |
|---|---|
FormulaParser()
Create a FormulaParser. |
|
FormulaParser(java.lang.String formulaText)
Create a FormulaParser object that will parse the given
formula text. |
|
| Method Summary | |
|---|---|
java.util.List<CellRef> |
getCellReferences()
Returns a List of CellRefs that this parser
found in the formula text. |
void |
parse()
Parses the formula text. |
void |
setFormulaText(java.lang.String formulaText)
Sets the formula text to the given formula text and resets the parser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormulaParser()
FormulaParser.
public FormulaParser(java.lang.String formulaText)
FormulaParser object that will parse the given
formula text.
formulaText - The text of the formula.| Method Detail |
|---|
public void setFormulaText(java.lang.String formulaText)
formulaText - The new formula text.public void parse()
public java.util.List<CellRef> getCellReferences()
List of CellRefs that this parser
found in the formula text.
List of CellRefs, possibly empty.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||