public final class FormulaParser extends Object
Modifier and Type | Method and Description |
---|---|
static Ptg[] |
parse(String formula,
FormulaParsingWorkbook workbook,
int formulaType,
int sheetIndex)
Parse a formula into a array of tokens
|
static Ptg[] |
parse(String formula,
FormulaParsingWorkbook workbook,
int formulaType,
int sheetIndex,
int rowIdx,
int colIdx)
Parse a formula into a array of tokens
|
static Ptg[] |
parse(String formula,
FormulaParsingWorkbook workbook,
int formulaType,
int sheetIndex,
Locale locale) |
static Ptg[] |
parse(String formula,
FormulaParsingWorkbook workbook,
int formulaType,
int sheetIndex,
Locale locale,
int rowIdx,
int colIdx) |
public static Ptg[] parse(String formula, FormulaParsingWorkbook workbook, int formulaType, int sheetIndex)
formula
- the formula to parseworkbook
- the parent workbookformulaType
- the type of the formula, see FormulaType
sheetIndex
- 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 invalidpublic static Ptg[] parse(String formula, FormulaParsingWorkbook workbook, int formulaType, int sheetIndex, int rowIdx, int colIdx)
formula
- the formula to parseworkbook
- the parent workbookformulaType
- the type of the formula, see FormulaType
sheetIndex
- 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 invalidpublic static Ptg[] parse(String formula, FormulaParsingWorkbook workbook, int formulaType, int sheetIndex, Locale locale, int rowIdx, int colIdx)
public static Ptg[] parse(String formula, FormulaParsingWorkbook workbook, int formulaType, int sheetIndex, Locale locale)
Copyright © 2020. All rights reserved.