Package io.keikai.model.impl.sys.formula
Class FormulaEngineImpl.FormulaExpressionImpl
- java.lang.Object
-
- io.keikai.model.impl.sys.formula.FormulaEngineImpl.FormulaExpressionImpl
-
- All Implemented Interfaces:
FormulaExpression
,Serializable
- Enclosing class:
- FormulaEngineImpl
protected static class FormulaEngineImpl.FormulaExpressionImpl extends Object implements FormulaExpression, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormulaExpressionImpl(String formula, Formula formulaX, Ref[] refs, boolean multipleArea)
FormulaExpressionImpl(String formula, Formula formulaX, Ref[] refs, boolean error, String errorMessage, boolean multipleArea)
FormulaExpressionImpl(String formula, Ptg[] ptgs, Ref[] refs)
FormulaExpressionImpl(String formula, Ptg[] ptgs, Ref[] refs, boolean multipleArea)
FormulaExpressionImpl(String formula, Ptg[] ptgs, Ref[] refs, boolean error, String errorMessage, boolean multipleArea)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ref[]
getAreaRefs()
String
getErrorMessage()
Get the expression parsing error message if anyString
getFormulaString()
Ptg[]
getPtgs()
Returns the cached parsing things.boolean
hasError()
indicated the expression has parsing errorboolean
isAreaRefs()
boolean
isMultipleAreaFormula()
Returns whether this is a multiple-area formula used in char data; e.g.
-
-
-
Field Detail
-
formulaX
protected Formula formulaX
-
-
Constructor Detail
-
FormulaExpressionImpl
public FormulaExpressionImpl(String formula, Ptg[] ptgs, Ref[] refs)
- Parameters:
refs
- resolved reference if formula has only one parsed token
-
FormulaExpressionImpl
public FormulaExpressionImpl(String formula, Ptg[] ptgs, Ref[] refs, boolean multipleArea)
-
FormulaExpressionImpl
public FormulaExpressionImpl(String formula, Formula formulaX, Ref[] refs, boolean multipleArea)
-
FormulaExpressionImpl
public FormulaExpressionImpl(String formula, Formula formulaX, Ref[] refs, boolean error, String errorMessage, boolean multipleArea)
-
-
Method Detail
-
hasError
public boolean hasError()
Description copied from interface:FormulaExpression
indicated the expression has parsing error- Specified by:
hasError
in interfaceFormulaExpression
- Returns:
-
getErrorMessage
public String getErrorMessage()
Description copied from interface:FormulaExpression
Get the expression parsing error message if any- Specified by:
getErrorMessage
in interfaceFormulaExpression
- Returns:
-
getFormulaString
public String getFormulaString()
- Specified by:
getFormulaString
in interfaceFormulaExpression
-
isAreaRefs
public boolean isAreaRefs()
- Specified by:
isAreaRefs
in interfaceFormulaExpression
-
getAreaRefs
public Ref[] getAreaRefs()
- Specified by:
getAreaRefs
in interfaceFormulaExpression
-
getPtgs
public Ptg[] getPtgs()
Description copied from interface:FormulaExpression
Returns the cached parsing things.- Specified by:
getPtgs
in interfaceFormulaExpression
-
isMultipleAreaFormula
public boolean isMultipleAreaFormula()
Description copied from interface:FormulaExpression
Returns whether this is a multiple-area formula used in char data; e.g. (A1, B1, Sheet2!A1:B2).- Specified by:
isMultipleAreaFormula
in interfaceFormulaExpression
-
-