protected static class FormulaEngineImpl.FormulaExpressionImpl extends java.lang.Object implements FormulaExpression, java.io.Serializable
Constructor and Description |
---|
FormulaExpressionImpl(java.lang.String formula,
Ptg[] ptgs,
Ref[] refs) |
FormulaExpressionImpl(java.lang.String formula,
Ptg[] ptgs,
Ref[] refs,
boolean error,
java.lang.String errorMessage,
boolean multipleArea) |
Modifier and Type | Method and Description |
---|---|
Ref[] |
getAreaRefs() |
java.lang.String |
getErrorMessage()
Get the expression parsing error message if any
|
java.lang.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.
|
public FormulaExpressionImpl(java.lang.String formula, Ptg[] ptgs, Ref[] refs)
ref
- resolved reference if formula has only one parsed tokenpublic boolean hasError()
FormulaExpression
hasError
in interface FormulaExpression
public java.lang.String getErrorMessage()
FormulaExpression
getErrorMessage
in interface FormulaExpression
public java.lang.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 © 2005-2010 Potix Corporation. All Rights Reserved.