org.apache.poi.hssf.model.HSSFFormulaParser.createParsingWorkbook()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(77)

本文整理了Java中org.apache.poi.hssf.model.HSSFFormulaParser.createParsingWorkbook()方法的一些代码示例,展示了HSSFFormulaParser.createParsingWorkbook()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HSSFFormulaParser.createParsingWorkbook()方法的具体详情如下:
包路径:org.apache.poi.hssf.model.HSSFFormulaParser
类名称:HSSFFormulaParser
方法名:createParsingWorkbook

HSSFFormulaParser.createParsingWorkbook介绍

暂无

代码示例

代码示例来源:origin: org.apache.poi/poi

  1. /**
  2. * @param formula The formula to parse
  3. * @param workbook The parent workbook
  4. * @param formulaType The type of formula
  5. * @param sheetIndex The 0-based index of the sheet this formula belongs to.
  6. * The sheet index is required to resolve sheet-level names. <code>-1</code> means that
  7. * the scope of the name will be ignored and the parser will match named ranges only by name
  8. *
  9. * @return the parsed formula tokens
  10. * @throws FormulaParseException if the formula has incorrect syntax or is otherwise invalid
  11. */
  12. public static Ptg[] parse(String formula, HSSFWorkbook workbook, FormulaType formulaType, int sheetIndex) throws FormulaParseException {
  13. return FormulaParser.parse(formula, createParsingWorkbook(workbook), formulaType, sheetIndex);
  14. }

代码示例来源:origin: com.haulmont.thirdparty/poi

  1. /**
  2. * @param formula the formula to parse
  3. * @param workbook the parent workbook
  4. * @param formulaType a constant from {@link FormulaType}
  5. * @param sheetIndex the 0-based index of the sheet this formula belongs to.
  6. * The sheet index is required to resolve sheet-level names. <code>-1</code> means that
  7. * the scope of the name will be ignored and the parser will match named ranges only by name
  8. *
  9. * @return the parsed formula tokens
  10. * @throws FormulaParseException if the formula has incorrect syntax or is otherwise invalid
  11. */
  12. public static Ptg[] parse(String formula, HSSFWorkbook workbook, int formulaType, int sheetIndex) throws FormulaParseException {
  13. return FormulaParser.parse(formula, createParsingWorkbook(workbook), formulaType, sheetIndex);
  14. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

  1. /**
  2. * @param formula The formula to parse
  3. * @param workbook The parent workbook
  4. * @param formulaType The type of formula
  5. * @param sheetIndex The 0-based index of the sheet this formula belongs to.
  6. * The sheet index is required to resolve sheet-level names. <code>-1</code> means that
  7. * the scope of the name will be ignored and the parser will match named ranges only by name
  8. *
  9. * @return the parsed formula tokens
  10. * @throws FormulaParseException if the formula has incorrect syntax or is otherwise invalid
  11. */
  12. public static Ptg[] parse(String formula, HSSFWorkbook workbook, FormulaType formulaType, int sheetIndex) throws FormulaParseException {
  13. return FormulaParser.parse(formula, createParsingWorkbook(workbook), formulaType, sheetIndex);
  14. }

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

  1. /**
  2. * @param formula the formula to parse
  3. * @param workbook the parent workbook
  4. * @param formulaType a constant from {@link FormulaType}
  5. * @param sheetIndex the 0-based index of the sheet this formula belongs to.
  6. * The sheet index is required to resolve sheet-level names. <code>-1</code> means that
  7. * the scope of the name will be ignored and the parser will match named ranges only by name
  8. *
  9. * @return the parsed formula tokens
  10. * @throws FormulaParseException if the formula has incorrect syntax or is otherwise invalid
  11. */
  12. public static Ptg[] parse(String formula, HSSFWorkbook workbook, int formulaType, int sheetIndex) throws FormulaParseException {
  13. return FormulaParser.parse(formula, createParsingWorkbook(workbook), formulaType, sheetIndex);
  14. }

相关文章

最新文章

更多