Class JRCrosstabExpressionEvaluator
- java.lang.Object
-
- net.sf.jasperreports.crosstabs.fill.JRCrosstabExpressionEvaluator
-
- All Implemented Interfaces:
JRFillExpressionEvaluator
public class JRCrosstabExpressionEvaluator extends Object implements JRFillExpressionEvaluator
Expression evaluator used for crosstabs at fill time.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_EVALUATION_TYPE_NOT_SUPPORTED
-
Constructor Summary
Constructors Constructor Description JRCrosstabExpressionEvaluator(JREvaluator evaluator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(JRExpression expression, byte evaluationType)
Evaluates an expression.JRFillDataset
getFillDataset()
Returns the dataset used by the expression evaluator.void
init(Map<String,JRFillParameter> parametersMap, Map<String,JRFillVariable> variablesMap, WhenResourceMissingTypeEnum whenResourceMissingType, boolean ignoreNPE)
void
setFillDataset(JRFillDataset dataset)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_EVALUATION_TYPE_NOT_SUPPORTED
public static final String EXCEPTION_MESSAGE_KEY_EVALUATION_TYPE_NOT_SUPPORTED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JRCrosstabExpressionEvaluator
public JRCrosstabExpressionEvaluator(JREvaluator evaluator)
-
-
Method Detail
-
evaluate
public Object evaluate(JRExpression expression, byte evaluationType) throws JRException
Description copied from interface:JRFillExpressionEvaluator
Evaluates an expression.- Specified by:
evaluate
in interfaceJRFillExpressionEvaluator
- Parameters:
expression
- the expression to evaluateevaluationType
- one ofJRExpression.EVALUATION_DEFAULT
,JRExpression.EVALUATION_OLD
,JRExpression.EVALUATION_ESTIMATED
- Returns:
- the result
- Throws:
JRException
-
init
public void init(Map<String,JRFillParameter> parametersMap, Map<String,JRFillVariable> variablesMap, WhenResourceMissingTypeEnum whenResourceMissingType, boolean ignoreNPE) throws JRException
- Throws:
JRException
-
setFillDataset
public void setFillDataset(JRFillDataset dataset)
-
getFillDataset
public JRFillDataset getFillDataset()
Description copied from interface:JRFillExpressionEvaluator
Returns the dataset used by the expression evaluator.- Specified by:
getFillDataset
in interfaceJRFillExpressionEvaluator
-
-