public abstract class AbstractExpression extends java.lang.Object implements Expression
Modifier | Constructor and Description |
---|---|
protected |
AbstractExpression() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones the expression, expression should be reinitialized after the
cloning.
|
protected DataRow |
getDataRow()
Returns the current
DataRow . |
Expression |
getInstance()
Return a new instance of this expression.
|
java.lang.String |
getName()
Returns the name of the expression.
|
protected java.util.Locale |
getParentLocale() |
protected org.pentaho.reporting.libraries.base.config.Configuration |
getReportConfiguration() |
protected ResourceBundleFactory |
getResourceBundleFactory() |
ExpressionRuntime |
getRuntime() |
boolean |
isDeepTraversing()
A deep-traversing expression declares that it should receive updates from
all subreports.
|
boolean |
isPrecompute()
Returns, whether the expression will be precomputed.
|
boolean |
isPreserve()
Checks, whether the expression's result should be preserved in the
precomputed value registry.
|
void |
setDeepTraversing(boolean deepTraversing)
Defines, whether the expression is deep-traversing.
|
void |
setName(java.lang.String name)
Sets the name of the expression.
|
void |
setPrecompute(boolean precompute)
Defines, whether the expression will be precomputed.
|
void |
setPreserve(boolean preserve)
Defines, whether the expression's result should be preserved in the
precomputed value registry.
|
void |
setRuntime(ExpressionRuntime runtime)
Defines the DataRow used in this expression.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeValue
public java.lang.String getName()
getName
in interface Expression
public void setName(java.lang.String name)
setName
in interface Expression
name
- the name.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Expression maintain no state, cloning is done at the beginning of the report processing to disconnect the used expression from any other object space.
clone
in interface Expression
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- this should never happen.public Expression getInstance()
getInstance
in interface Expression
public void setRuntime(ExpressionRuntime runtime)
setRuntime
in interface Expression
runtime
- the runtime information for the expressionpublic ExpressionRuntime getRuntime()
protected ResourceBundleFactory getResourceBundleFactory()
protected org.pentaho.reporting.libraries.base.config.Configuration getReportConfiguration()
protected java.util.Locale getParentLocale()
public boolean isPrecompute()
Expression
isPrecompute
in interface Expression
public void setPrecompute(boolean precompute)
Expression
setPrecompute
in interface Expression
precompute
- true, if the expression is precomputed, false otherwise.public boolean isDeepTraversing()
Expression
isDeepTraversing
in interface Expression
public void setDeepTraversing(boolean deepTraversing)
Expression
setDeepTraversing
in interface Expression
deepTraversing
- true, if the expression is deep-traversing, false
otherwise.public boolean isPreserve()
Expression
isPreserve
in interface Expression
public void setPreserve(boolean preserve)
Expression
setPreserve
in interface Expression
preserve
- true, if the expression's results should be preserved,
false otherwise.