net.sf.jasperreports.engine.fill
Class JRCalculator
java.lang.Object
net.sf.jasperreports.engine.fill.JRCalculator
- All Implemented Interfaces:
- JRFillExpressionEvaluator
public class JRCalculator
- extends java.lang.Object
- implements JRFillExpressionEvaluator
- Version:
- $Id: JRCalculator.java 3939 2010-08-20 09:52:00Z teodord $
- Author:
- Teodor Danciu ([email protected])
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parsm
protected java.util.Map parsm
fldsm
protected java.util.Map fldsm
varsm
protected java.util.Map varsm
variables
protected JRFillVariable[] variables
groups
protected JRFillGroup[] groups
datasets
protected JRFillElementDataset[] datasets
JRCalculator
protected JRCalculator(DatasetExpressionEvaluator evaluator)
- Creates a calculator using an expression evaluator.
- Parameters:
evaluator
- the expression evaluator
JRCalculator
protected JRCalculator(JREvaluator evaluator)
- Creates a calculator using an expression evaluator.
- Parameters:
evaluator
- the expression evaluator
init
protected void init(JRFillDataset dataset)
throws JRException
- Initializes the calculator.
- Parameters:
dataset
- the dataset this calculator is used for
- Throws:
JRException
getPageNumber
public JRFillVariable getPageNumber()
getColumnNumber
public JRFillVariable getColumnNumber()
calculateVariables
public void calculateVariables()
throws JRException
- Throws:
JRException
estimateVariables
public void estimateVariables()
throws JRException
- Throws:
JRException
estimateGroupRuptures
public void estimateGroupRuptures()
throws JRException
- Determines group breaks based on estimated report values.
estimateVariables()
needs to be called prior to this method.
- Throws:
JRException
initializeVariables
public void initializeVariables(ResetTypeEnum resetType,
IncrementTypeEnum incrementType)
throws JRException
- Throws:
JRException
evaluate
public java.lang.Object evaluate(JRExpression expression,
byte evaluationType)
throws JRException
- Specified by:
evaluate
in interface JRFillExpressionEvaluator
- Throws:
JRException
evaluateOld
public java.lang.Object evaluateOld(JRExpression expression)
throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
evaluateEstimated
public java.lang.Object evaluateEstimated(JRExpression expression)
throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
evaluate
public java.lang.Object evaluate(JRExpression expression)
throws JRExpressionEvalException
- Throws:
JRExpressionEvalException
Copyright © 2011. All Rights Reserved.