public abstract class AbstractExpression extends Object implements Expression
DataRow
. All expressions are named and
the defined names have to be unique within the report's expressions, functions and fields of the datasource.
Expressions are configured using properties.
Modifier | Constructor and Description |
---|---|
protected |
AbstractExpression()
Creates an unnamed expression.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones the expression.
|
DataRow |
getDataRow()
Returns the current
DataRow . |
int |
getDependencyLevel()
Returns the dependency level for the expression (controls evaluation order for expressions and functions).
|
Expression |
getInstance()
Return a completly separated copy of this function.
|
String |
getName()
Returns the name of the expression.
|
Configuration |
getReportConfiguration()
Returns the report's current configuration.
|
ResourceBundleFactory |
getResourceBundleFactory()
Returns the resource-bundle factory of the report.
|
ExpressionRuntime |
getRuntime()
Returns the ExpressionRune used in this expression.
|
boolean |
isActive()
Deprecated.
The Active-Flag is no longer evaluated. We always assume it to be true.
|
boolean |
isDeepTraversing()
Checks whether this expression is a deep-traversing expression.
|
boolean |
isPreserve()
Checks whether this expression's last value is preserved after the expression goes out of scope.
|
void |
setActive(boolean active)
Deprecated.
All expressions are always active. This method has no effect anymore.
|
void |
setDependencyLevel(int level)
Sets the dependency level for the expression.
|
void |
setName(String name)
Sets the name of the expression.
|
void |
setPreserve(boolean preserve)
Defines, whether this expression's last value is preserved after the expression goes out of scope.
|
void |
setRuntime(ExpressionRuntime runtime)
Defines the ExpressionRune used in this expression.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValue
protected AbstractExpression()
setName(java.lang.String)
before the
expression is added to the report's expression collection.public String getName()
getName
in interface Expression
public void setName(String name)
The name should be unique among:
TableModel
;
setName
in interface Expression
name
- the name (null
not permitted).public final boolean isActive()
true
if this expression contains "auto-active" content and should be called by the system
regardless of whether this expression is referenced in the DataRow
.isActive
in interface Expression
public final void setActive(boolean active)
active
- a flag.public int getDependencyLevel()
getDependencyLevel
in interface Expression
public void setDependencyLevel(int level)
setDependencyLevel
in interface Expression
level
- the level (must be greater than or equal to 0).public DataRow getDataRow()
DataRow
.getDataRow
in interface Expression
public Object clone() throws CloneNotSupportedException
Expressions maintain no state, cloning is done at the beginning of the report processing to disconnect the expression from any other object space.
clone
in interface Expression
clone
in class Object
CloneNotSupportedException
- this should never happen.public Expression getInstance()
getInstance
in interface Expression
public ResourceBundleFactory getResourceBundleFactory()
Expression
getResourceBundleFactory
in interface Expression
public Configuration getReportConfiguration()
Expression
getReportConfiguration
in interface Expression
public void setRuntime(ExpressionRuntime runtime)
setRuntime
in interface Expression
runtime
- the runtime information for the expressionpublic ExpressionRuntime getRuntime()
getRuntime
in interface Expression
public boolean isDeepTraversing()
isDeepTraversing
in interface Expression
public boolean isPreserve()
isPreserve
in interface Expression
public void setPreserve(boolean preserve)
preserve
- true, if the expression's last value is preserved, false otherwise.Copyright © 2017 Hitachi Vantara. All rights reserved.