|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jfree.report.function.AbstractExpression
An abstract base class for implementing new report expressions.
Expressions are stateless functions which have access to the report'sDataRow. 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.
| Constructor Summary | |
protected |
AbstractExpression()
Creates an unnamed expression. |
| Method Summary | |
java.lang.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. |
java.lang.String |
getName()
Returns the name of the expression. |
org.jfree.util.Configuration |
getReportConfiguration()
|
ResourceBundleFactory |
getResourceBundleFactory()
|
protected ExpressionRuntime |
getRuntime()
|
boolean |
isActive()
Returns 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. |
void |
setActive(boolean active)
|
void |
setDependencyLevel(int level)
Sets the dependency level for the expression. |
void |
setName(java.lang.String name)
Sets the name of the expression. |
void |
setRuntime(ExpressionRuntime runtime)
Defines the DataRow used in this expression. |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
protected AbstractExpression()
setName(java.lang.String) before the expression is added to the report's
expression collection.| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
The name should be unique among:
TableModel; 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.public final void setActive(boolean active)
public int getDependencyLevel()
public void setDependencyLevel(int level)
level - the level (must be greater than or equal to 0).public DataRow getDataRow()
DataRow.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Expressions maintain no state, cloning is done at the beginning of the report processing to disconnect the expression from any other object space.
public Expression getInstance()
public ResourceBundleFactory getResourceBundleFactory()
public org.jfree.util.Configuration getReportConfiguration()
public void setRuntime(ExpressionRuntime runtime)
runtime - the runtime information for the expressionprotected ExpressionRuntime getRuntime()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||