protected static class FormulaEngineImpl.FormulaExpressionImpl extends Object implements FormulaExpression, Serializable
| Constructor and Description |
|---|
FormulaExpressionImpl(String formula,
org.zkoss.poi.ss.formula.ptg.Ptg[] ptgs,
Ref[] refs) |
FormulaExpressionImpl(String formula,
org.zkoss.poi.ss.formula.ptg.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() |
org.zkoss.poi.ss.formula.ptg.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.
|
public FormulaExpressionImpl(String formula, org.zkoss.poi.ss.formula.ptg.Ptg[] ptgs, Ref[] refs)
ref - resolved reference if formula has only one parsed tokenpublic boolean hasError()
FormulaExpressionhasError in interface FormulaExpressionpublic String getErrorMessage()
FormulaExpressiongetErrorMessage in interface FormulaExpressionpublic String getFormulaString()
getFormulaString in interface FormulaExpressionpublic boolean isAreaRefs()
isAreaRefs in interface FormulaExpressionpublic Ref[] getAreaRefs()
getAreaRefs in interface FormulaExpressionpublic org.zkoss.poi.ss.formula.ptg.Ptg[] getPtgs()
FormulaExpressiongetPtgs in interface FormulaExpressionpublic boolean isMultipleAreaFormula()
FormulaExpressionisMultipleAreaFormula in interface FormulaExpressionCopyright © 2019. All rights reserved.