org.pentaho.reporting.engine.classic.core.function.sys
Class StyleExpressionsEvaluator

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.function.AbstractExpression
      extended by org.pentaho.reporting.engine.classic.core.function.AbstractFunction
          extended by org.pentaho.reporting.engine.classic.core.function.AbstractElementFormatFunction
              extended by org.pentaho.reporting.engine.classic.core.function.sys.StyleExpressionsEvaluator
All Implemented Interfaces:
Serializable, Cloneable, EventListener, PageEventListener, ReportListener, Expression, Function, LayoutProcessorFunction, StructureFunction

public class StyleExpressionsEvaluator
extends AbstractElementFormatFunction
implements StructureFunction

Evaluates style-expressions and updates the stylesheet. This is an internal helper function. It is not meant to be used by end-users and manually adding this function to a report will cause funny side-effects.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
StyleExpressionsEvaluator()
          Default Constructor.
 
Method Summary
 int getDependencyLevel()
          Returns the dependency level for the expression (controls evaluation order for expressions and functions).
 Expression getInstance()
          Return a completly separated copy of this function.
 int getProcessingPriority()
           
 void reportInitialized(ReportEvent event)
          Receives notification that report generation initializes the current run.
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractElementFormatFunction
getElement, getValue, groupFinished, groupStarted, itemsAdvanced, itemsFinished, itemsStarted, pageFinished, pageStarted, reportFinished, reportStarted, setElement
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractFunction
reportDone
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression
clone, getDataRow, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.reporting.engine.classic.core.event.ReportListener
groupFinished, groupStarted, itemsAdvanced, itemsFinished, itemsStarted, reportDone, reportFinished, reportStarted
 
Methods inherited from interface org.pentaho.reporting.engine.classic.core.function.Expression
clone, getDataRow, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, getValue, isActive, isDeepTraversing, isPreserve, setDependencyLevel, setName, setRuntime
 

Constructor Detail

StyleExpressionsEvaluator

public StyleExpressionsEvaluator()
Default Constructor.

Method Detail

reportInitialized

public void reportInitialized(ReportEvent event)
Receives notification that report generation initializes the current run.

The event carries a ReportState.Started state. Use this to initialize the report.

Specified by:
reportInitialized in interface ReportListener
Overrides:
reportInitialized in class AbstractElementFormatFunction
Parameters:
event - The event.

getProcessingPriority

public int getProcessingPriority()
Specified by:
getProcessingPriority in interface StructureFunction

getDependencyLevel

public int getDependencyLevel()
Returns the dependency level for the expression (controls evaluation order for expressions and functions).

Specified by:
getDependencyLevel in interface Expression
Overrides:
getDependencyLevel in class AbstractExpression
Returns:
the level.

getInstance

public Expression getInstance()
Description copied from class: AbstractExpression
Return a completly separated copy of this function. The copy does no longer share any changeable objects with the original function.

Specified by:
getInstance in interface Expression
Overrides:
getInstance in class AbstractExpression
Returns:
a copy of this function.