|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.function.FormulaExpression
public final class FormulaExpression
The formula expression is used to evaluate a LibFormula/OpenFormula expression. There is generally no need to reference this class directly, as this expression is used automatically if a formula is specified in a element, style-expression or common expression.
Constructor Summary | |
---|---|
FormulaExpression()
Default Constructor. |
Method Summary | |
---|---|
String |
getFormula()
Returns the formula (incuding the optional namespace) as defined by the OpenFormula standard. |
Exception |
getFormulaError()
|
String |
getFormulaExpression()
Returns the formula expression. |
String |
getFormulaNamespace()
Returns the formula namespace. |
Expression |
getInstance()
Return a completly separated copy of this function. |
Object |
getValue()
Return the computed value of the formula. |
boolean |
isFormulaError()
|
void |
setFormula(String formula)
Defines the formula (incuding the optional namespace) as defined by the OpenFormula standard. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
---|
clone, getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormulaExpression()
Method Detail |
---|
public String getFormula()
public String getFormulaNamespace()
public String getFormulaExpression()
public void setFormula(String formula)
formula
- the formula as text.public Object getValue()
public boolean isFormulaError()
public Exception getFormulaError()
public Expression getInstance()
getInstance
in interface Expression
getInstance
in class AbstractExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |