org.jfree.report.expressions

Interface Function

public interface Function extends Expression

The interface for report functions. A report function separates the business logic from presentation of the result.

Since JFreeReport 0.9 functions are considered immutable. During the advancement process, the function returns a new instance with the updated state.

Author: Thomas Morgner

Method Summary
Functionadvance()
When the advance method is called, the function is asked to perform the next step of its computation.

Method Detail

advance

public Function advance()
When the advance method is called, the function is asked to perform the next step of its computation.

The original function must not be altered during that step (or more correctly, calling advance on the original expression again must not return a different result).

Returns: a copy of the function containing the new state.