protected static class FormulaEngineImpl.FormulaExpressionImpl extends Object implements FormulaExpression, Serializable
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
Ref[] |
getAreaRefs() |
String |
getErrorMessage()
Get the expression parsing error message if any
|
String |
getFormulaString() |
Ptg[] |
getPtgs()
Returns the cached parsing things.
|
boolean |
hasError()
indicated the expression has parsing error
|
boolean |
isAreaRefs() |
boolean |
isMultipleAreaFormula()
Returns whether this is a multiple-area formula used in char data;
e.g.
|
protected Formula formulaX
public FormulaExpressionImpl(String formula, Ptg[] ptgs, Ref[] refs)
refs
- resolved reference if formula has only one parsed tokenpublic FormulaExpressionImpl(String formula, Ptg[] ptgs, Ref[] refs, boolean multipleArea)
public FormulaExpressionImpl(String formula, Formula formulaX, Ref[] refs, boolean multipleArea)
public FormulaExpressionImpl(String formula, Formula formulaX, Ref[] refs, boolean error, String errorMessage, boolean multipleArea)
public boolean hasError()
FormulaExpression
hasError
in interface FormulaExpression
public String getErrorMessage()
FormulaExpression
getErrorMessage
in interface FormulaExpression
public String getFormulaString()
getFormulaString
in interface FormulaExpression
public boolean isAreaRefs()
isAreaRefs
in interface FormulaExpression
public Ref[] getAreaRefs()
getAreaRefs
in interface FormulaExpression
public Ptg[] getPtgs()
FormulaExpression
getPtgs
in interface FormulaExpression
public boolean isMultipleAreaFormula()
FormulaExpression
isMultipleAreaFormula
in interface FormulaExpression
Copyright © 2020. All rights reserved.