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
|
static Ptg[] |
parse(java.lang.String formula,
FormulaParsingWorkbook workbook,
int formulaType,
int sheetIndex,
int rowIdx,
int colIdx)
Parse a formula into a array of tokens
|
static Ptg[] |
parse(java.lang.String formula,
FormulaParsingWorkbook workbook,
int formulaType,
int sheetIndex,
java.util.Locale locale) |
static Ptg[] |
parse(java.lang.String formula,
FormulaParsingWorkbook workbook,
int formulaType,
int sheetIndex,
java.util.Locale locale,
int rowIdx,
int colIdx) |
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 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(java.lang.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(java.lang.String formula, FormulaParsingWorkbook workbook, int formulaType, int sheetIndex, java.util.Locale locale, int rowIdx, int colIdx)
public static Ptg[] parse(java.lang.String formula, FormulaParsingWorkbook workbook, int formulaType, int sheetIndex, java.util.Locale locale)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.