public final class FormulaParser
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Ptg[] |
parse(java.lang.String formula,
FormulaParsingWorkbook workbook,
int formulaType,
int sheetIndex)
Parse a formula into a array of tokens
|
public static Ptg[] parse(java.lang.String formula, FormulaParsingWorkbook workbook, int formulaType, int sheetIndex)
formula - the formula to parseworkbook - the parent workbookformulaType - the type of the formula, see FormulaTypesheetIndex - the 0-based index of the sheet this formula belongs to.
The sheet index is required to resolve sheet-level names. -1 means that
the scope of the name will be ignored and the parser will match names only by nameFormulaParseException - if the formula has incorrect syntax or is otherwise invalidCopyright 2014 The Apache Software Foundation or its licensors, as applicable.