Package org.jfree.report.data
Class PrecomputeNodeImpl
- java.lang.Object
-
- org.jfree.report.data.PrecomputeNodeImpl
-
- All Implemented Interfaces:
PrecomputeNode
public class PrecomputeNodeImpl extends java.lang.Object implements 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 Constructor Description PrecomputeNodeImpl(PrecomputeNodeKey key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(PrecomputeNodeImpl node)voidaddFunction(java.lang.String name, java.lang.Object value)PrecomputeNodegetFirstChild()intgetFunctionCount()java.lang.StringgetFunctionName(int idx)java.lang.ObjectgetFunctionResult(int idx)PrecomputeNodeKeygetKey()PrecomputeNodegetLastChild()PrecomputeNodegetNext()PrecomputeNodegetParent()voidprune()protected voidsetFirstChild(PrecomputeNodeImpl firstChild)protected voidsetLastChild(PrecomputeNodeImpl lastChild)protected voidsetNext(PrecomputeNodeImpl next)protected voidsetParent(PrecomputeNodeImpl parent)
-
-
-
Constructor Detail
-
PrecomputeNodeImpl
public PrecomputeNodeImpl(PrecomputeNodeKey key)
-
-
Method Detail
-
getKey
public PrecomputeNodeKey getKey()
- Specified by:
getKeyin interfacePrecomputeNode
-
getParent
public PrecomputeNode getParent()
-
setParent
protected void setParent(PrecomputeNodeImpl parent)
-
getNext
public PrecomputeNode getNext()
-
setNext
protected void setNext(PrecomputeNodeImpl next)
-
getFirstChild
public PrecomputeNode getFirstChild()
-
setFirstChild
protected void setFirstChild(PrecomputeNodeImpl firstChild)
-
getLastChild
public PrecomputeNode getLastChild()
-
setLastChild
protected void setLastChild(PrecomputeNodeImpl lastChild)
-
add
public void add(PrecomputeNodeImpl node)
-
addFunction
public void addFunction(java.lang.String name, java.lang.Object value)
-
getFunctionCount
public int getFunctionCount()
- Specified by:
getFunctionCountin interfacePrecomputeNode
-
getFunctionName
public java.lang.String getFunctionName(int idx)
- Specified by:
getFunctionNamein interfacePrecomputeNode
-
getFunctionResult
public java.lang.Object getFunctionResult(int idx)
- Specified by:
getFunctionResultin interfacePrecomputeNode
-
prune
public void prune()
-
-