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 TypeMethodDescriptionvoidadd(PrecomputeNodeImpl node) voidaddFunction(String name, Object value) intgetFunctionName(int idx) getFunctionResult(int idx) getKey()getNext()voidprune()protected voidsetFirstChild(PrecomputeNodeImpl firstChild) protected voidsetLastChild(PrecomputeNodeImpl lastChild) protected voidsetNext(PrecomputeNodeImpl next) protected voidsetParent(PrecomputeNodeImpl parent)
-
Constructor Details
-
PrecomputeNodeImpl
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfacePrecomputeNode
-
getParent
-
setParent
-
getNext
-
setNext
-
getFirstChild
-
setFirstChild
-
getLastChild
-
setLastChild
-
add
-
addFunction
-
getFunctionCount
public int getFunctionCount()- Specified by:
getFunctionCountin interfacePrecomputeNode
-
getFunctionName
- Specified by:
getFunctionNamein interfacePrecomputeNode
-
getFunctionResult
- Specified by:
getFunctionResultin interfacePrecomputeNode
-
prune
public void prune()
-