Interface EvaluationWorkbook

    • Method Detail

      • getSheetName

        String getSheetName​(int sheetIndex)
        Returns the name of the sheet at the given 0-based index.
        Parameters:
        sheetIndex - The 0-based index of the sheet
        Returns:
        The name of the sheet
        Throws:
        IllegalArgumentException - If the index is outside the indices of available sheets
      • getSheetIndex

        int getSheetIndex​(EvaluationSheet sheet)
        Returns:
        -1 if the specified sheet is from a different book
      • getSheetIndex

        int getSheetIndex​(String sheetName)
        Finds a sheet index by case insensitive name.
        Returns:
        the index of the sheet matching the specified name. -1 if not found
      • getSheet

        EvaluationSheet getSheet​(int sheetIndex)
        Get the sheet identified by the given 0-based index.
        Parameters:
        sheetIndex - The 0-based index of the sheet
        Returns:
        The sheet
        Throws:
        IllegalArgumentException - If the index is outside the indices of available sheets
      • getExternalSheet

        EvaluationWorkbook.ExternalSheet getExternalSheet​(int externSheetIndex)
        HSSF Only - fetch the external-style sheet details

        Return will have no workbook set if it's actually in our own workbook

        Returns:
        The found sheet or null if not found
        Throws:
        IllegalStateException - If called with XSSF or SXSSF workbooks
      • getExternalSheet

        EvaluationWorkbook.ExternalSheet getExternalSheet​(String firstSheetName,
                                                          String lastSheetName,
                                                          int externalWorkbookNumber)
        XSSF Only - fetch the external-style sheet details

        Return will have no workbook set if it's actually in our own workbook

        Returns:
        The found sheet
        Throws:
        IllegalStateException - If called with HSSF workbooks
      • convertFromExternSheetIndex

        int convertFromExternSheetIndex​(int externSheetIndex)
        HSSF Only - convert an external sheet index to an internal sheet index, for an external-style reference to one of this workbook's own sheets
      • convertLastIndexFromExternSheetIndex

        default int convertLastIndexFromExternSheetIndex​(int externSheetIndex)
      • getExternalName

        EvaluationWorkbook.ExternalName getExternalName​(int externSheetIndex,
                                                        int externNameIndex)
        HSSF Only - fetch the external-style name details
      • getFormulaTokens

        Ptg[] getFormulaTokens​(int sheetIndex,
                               String formula)