Package io.keikai.model.sys.formula
Interface FormulaEngine
-
- All Known Implementing Classes:
FormulaEngineEx
,FormulaEngineImpl
public interface FormulaEngine
- Since:
- 3.5.0
- Author:
- dennis
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_EXTERNAL_BOOK_NAMES
static String
KEY_FORMULA_CACHE
static String
KEY_SHEET_INDEXES
-
Method Summary
-
-
-
Field Detail
-
KEY_EXTERNAL_BOOK_NAMES
static final String KEY_EXTERNAL_BOOK_NAMES
- See Also:
- Constant Field Values
-
KEY_SHEET_INDEXES
static final String KEY_SHEET_INDEXES
- See Also:
- Constant Field Values
-
KEY_FORMULA_CACHE
static final String KEY_FORMULA_CACHE
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
FormulaExpression parse(String formula, FormulaParseContext context)
-
shift
FormulaExpression shift(String formula, int rowOffset, int columnOffset, FormulaParseContext context)
Shift the formula base on the offset- Parameters:
formula
-rowOffset
-columnOffset
-context
-- Returns:
-
transpose
FormulaExpression transpose(String formula, int rowOrigin, int columnOrigin, FormulaParseContext context)
Transpose the formula base one the origin- Parameters:
formula
-rowOrigin
-columnOrigin
-context
-- Returns:
-
move
FormulaExpression move(String formula, SheetRegion srcRegion, int rowOffset, int columnOffset, FormulaParseContext context)
Shift the formula that care on sheet and region.- Parameters:
formula
-srcRegion
-rowOffset
-columnOffset
-context
-- Returns:
-
shrink
FormulaExpression shrink(String formula, SheetRegion srcRegion, boolean hrizontal, FormulaParseContext context)
-
extend
FormulaExpression extend(String formula, SheetRegion srcRegion, boolean hrizontal, FormulaParseContext context)
-
renameSheet
FormulaExpression renameSheet(String formula, SBook book, String oldName, String newName, FormulaParseContext context)
-
renameName
FormulaExpression renameName(String formula, SBook book, String oldName, String newName, FormulaParseContext context)
-
cloneSheet
FormulaExpression cloneSheet(String formula, SBook book, String oldName, String newName, FormulaParseContext context)
-
evaluate
EvaluationResult evaluate(FormulaExpression expr, FormulaEvaluationContext context)
-
evaluateOnly
void evaluateOnly(FormulaExpression expr, FormulaEvaluationContext context)
Evaluates the expression only, without returning the result.- Parameters:
expr
-context
-- Since:
- 5.9.0
-
clearCache
void clearCache(FormulaClearContext context)
-
clearColumnCache
void clearColumnCache(FormulaClearContext context, int start, int end)
-
shiftPtgs
FormulaExpression shiftPtgs(FormulaExpression fexpr, int rowOffset, int columnOffset, FormulaParseContext context)
Shift the formula base on the offset- Parameters:
formula
-rowOffset
-columnOffset
-context
-- Returns:
- Since:
- 3.6.0
-
transposePtgs
FormulaExpression transposePtgs(FormulaExpression fexpr, int rowOrigin, int columnOrigin, FormulaParseContext context)
Transpose the formula base one the origin- Parameters:
formula
-rowOrigin
-columnOrigin
-context
-- Returns:
- Since:
- 3.6.0
-
movePtgs
FormulaExpression movePtgs(FormulaExpression fexpr, SheetRegion srcRegion, int rowOffset, int columnOffset, FormulaParseContext context)
Shift the formula that care on sheet and region for cells insertion, deletion, and paste- Parameters:
formula
-srcRegion
-rowOffset
-columnOffset
-context
-- Returns:
- Since:
- 3.6.0
-
shrinkPtgs
FormulaExpression shrinkPtgs(FormulaExpression fexpr, SheetRegion srcRegion, boolean hrizontal, FormulaParseContext context)
modifyFormulaExpression
for cells deletion- Parameters:
fexpr
-srcRegion
-hrizontal
-context
-- Returns:
- Since:
- 3.6.0
-
extendPtgs
FormulaExpression extendPtgs(FormulaExpression fexpr, SheetRegion srcRegion, boolean hrizontal, FormulaParseContext context)
modifyFormulaExpression
for cells insertion- Parameters:
fexpr
-srcRegion
-hrizontal
-context
-- Returns:
- Since:
- 3.6.0
-
renameSheetPtgs
FormulaExpression renameSheetPtgs(FormulaExpression fexpr, SBook book, String oldName, String newName, FormulaParseContext context)
- Parameters:
fexpr
-book
-oldName
-newName
-context
-- Returns:
- Since:
- 3.6.0
-
cloneSheetPtgs
FormulaExpression cloneSheetPtgs(FormulaExpression fexpr, SBook book, String oldName, String newName, FormulaParseContext context)
- Parameters:
fexpr
-book
-oldName
-newName
-context
-- Returns:
- Since:
- 5.2.0
-
renameNamePtgs
FormulaExpression renameNamePtgs(FormulaExpression fexpr, SBook book, int sheetIndex, String oldName, String newName, FormulaParseContext context)
- Parameters:
fexpr
-book
-oldName
-newName
-context
-- Returns:
- Since:
- 3.6.0
-
renameName
FormulaExpression renameName(String formula, SBook book, int sheetIndex, String oldName, String newName, FormulaParseContext context)
- Parameters:
formula
-book
-sheetIndex
-oldName
-newName
-context
-- Returns:
- Since:
- 3.6.0
-
updateDependencyTable
void updateDependencyTable(FormulaExpression fexpr, FormulaParseContext context)
- Parameters:
fexpr
-context
-- Since:
- 3.6.0
-
reorderSheetPtgs
FormulaExpression reorderSheetPtgs(FormulaExpression fexpr, SBook book, int oldIndex, int newIndex, FormulaParseContext context)
- Parameters:
fexpr
-book
-oldName
-newName
-context
-- Since:
- 3.7.0
-
renameTableNameTablePtgs
FormulaExpression renameTableNameTablePtgs(FormulaExpression fexpr, SBook book, String oldName, String newName, FormulaParseContext context)
- Parameters:
fexpr
-oldName
-newName
-context
-- Returns:
- Since:
- 3.8.0
-
renameColumnNameTablePtgs
FormulaExpression renameColumnNameTablePtgs(FormulaExpression fexpr, STable table, String oldName, String newName, FormulaParseContext context)
- Parameters:
fexpr
-tableName
-oldName
-newName
-context
-- Returns:
- Since:
- 3.8.0
-
-