Package org.jfree.report.data
Class PrecomputeNodeImpl
java.lang.Object
org.jfree.report.data.PrecomputeNodeImpl
- All Implemented Interfaces:
PrecomputeNode
A precompute-node represents a resolved element or section of the report definition. Unlike the structural nodes,
these nodes can always have childs.
The resulting tree gets pruned as early as possible - nodes which do not contain precomputed or preserved expressions
will not be stored.
- Author:
- Thomas Morgner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(PrecomputeNodeImpl node) void
addFunction
(String name, Object value) int
getFunctionName
(int idx) getFunctionResult
(int idx) getKey()
getNext()
void
prune()
protected void
setFirstChild
(PrecomputeNodeImpl firstChild) protected void
setLastChild
(PrecomputeNodeImpl lastChild) protected void
setNext
(PrecomputeNodeImpl next) protected void
setParent
(PrecomputeNodeImpl parent)
-
Constructor Details
-
PrecomputeNodeImpl
-
-
Method Details
-
getKey
- Specified by:
getKey
in interfacePrecomputeNode
-
getParent
-
setParent
-
getNext
-
setNext
-
getFirstChild
-
setFirstChild
-
getLastChild
-
setLastChild
-
add
-
addFunction
-
getFunctionCount
public int getFunctionCount()- Specified by:
getFunctionCount
in interfacePrecomputeNode
-
getFunctionName
- Specified by:
getFunctionName
in interfacePrecomputeNode
-
getFunctionResult
- Specified by:
getFunctionResult
in interfacePrecomputeNode
-
prune
public void prune()
-