public final class FormulaParser extends java.lang.Object
|Modifier and Type||Method and Description|
Parse a formula into a array of tokens Side effect: creates name (Workbook.createName) if formula contains unrecognized names (names are likely UDFs)
public static Ptg parse(java.lang.String formula, FormulaParsingWorkbook workbook, int formulaType, int sheetIndex)
formula- the formula to parse
workbook- the parent workbook
formulaType- the type of the formula, see
sheetIndex- the 0-based index of the sheet this formula belongs to. The sheet index is required to resolve sheet-level names.
-1means that the scope of the name will be ignored and the parser will match names only by name
FormulaParseException- if the formula has incorrect syntax or is otherwise invalid
Copyright 2015 The Apache Software Foundation or its licensors, as applicable.