org.jfree.report.data

Class PrecomputeNodeImpl

public class PrecomputeNodeImpl extends 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
voidadd(PrecomputeNodeImpl node)
voidaddFunction(String name, Object value)
PrecomputeNodegetFirstChild()
intgetFunctionCount()
StringgetFunctionName(int idx)
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

add

public void add(PrecomputeNodeImpl node)

addFunction

public void addFunction(String name, Object value)

getFirstChild

public PrecomputeNode getFirstChild()

getFunctionCount

public int getFunctionCount()

getFunctionName

public String getFunctionName(int idx)

getFunctionResult

public Object getFunctionResult(int idx)

getKey

public PrecomputeNodeKey getKey()

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)