org.jfree.report.data

Class PrecomputeNodeImpl

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

PrecomputeNodeImpl(PrecomputeNodeKey key)

Method Summary

void
add(PrecomputeNodeImpl node)
void
addFunction(String name, Object value)
PrecomputeNode
getFirstChild()
int
getFunctionCount()
String
getFunctionName(int idx)
Object
getFunctionResult(int idx)
PrecomputeNodeKey
getKey()
PrecomputeNode
getLastChild()
PrecomputeNode
getNext()
PrecomputeNode
getParent()
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

public PrecomputeNodeImpl(PrecomputeNodeKey key)

Method Details

add

public void add(PrecomputeNodeImpl node)

addFunction

public void addFunction(String name,
                        Object value)

getFirstChild

public PrecomputeNode getFirstChild()

getFunctionCount

public int getFunctionCount()
Specified by:
getFunctionCount in interface PrecomputeNode

getFunctionName

public String getFunctionName(int idx)
Specified by:
getFunctionName in interface PrecomputeNode

getFunctionResult

public Object getFunctionResult(int idx)
Specified by:
getFunctionResult in interface PrecomputeNode

getKey

public PrecomputeNodeKey getKey()
Specified by:
getKey in interface PrecomputeNode

getLastChild

public PrecomputeNode getLastChild()

getNext

public PrecomputeNode getNext()

getParent

public PrecomputeNode getParent()

prune

public void prune()

setFirstChild

protected void setFirstChild(PrecomputeNodeImpl firstChild)

setLastChild

protected void setLastChild(PrecomputeNodeImpl lastChild)

setNext

protected void setNext(PrecomputeNodeImpl next)

setParent

protected void setParent(PrecomputeNodeImpl parent)