Package net.sf.jasperreports.engine.fill
Class ConstantBuiltinExpression
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.ConstantBuiltinExpression
-
- All Implemented Interfaces:
BuiltinExpressionEvaluator
public class ConstantBuiltinExpression extends Object implements BuiltinExpressionEvaluator
Builtin expression that evaluates to a constant value.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description ConstantBuiltinExpression(Object value)
Creates an expression evaluator for a specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(DatasetExpressionEvaluator evaluator)
Object
evaluateEstimated(DatasetExpressionEvaluator evaluator)
Object
evaluateOld(DatasetExpressionEvaluator evaluator)
void
init(Map<String,JRFillParameter> parametersMap, Map<String,JRFillField> fieldsMap, Map<String,JRFillVariable> variablesMap, WhenResourceMissingTypeEnum resourceMissingType)
-
-
-
Constructor Detail
-
ConstantBuiltinExpression
public ConstantBuiltinExpression(Object value)
Creates an expression evaluator for a specified value.- Parameters:
value
- the value
-
-
Method Detail
-
init
public void init(Map<String,JRFillParameter> parametersMap, Map<String,JRFillField> fieldsMap, Map<String,JRFillVariable> variablesMap, WhenResourceMissingTypeEnum resourceMissingType) throws JRException
- Specified by:
init
in interfaceBuiltinExpressionEvaluator
- Throws:
JRException
-
evaluate
public Object evaluate(DatasetExpressionEvaluator evaluator) throws JRExpressionEvalException
- Specified by:
evaluate
in interfaceBuiltinExpressionEvaluator
- Throws:
JRExpressionEvalException
-
evaluateOld
public Object evaluateOld(DatasetExpressionEvaluator evaluator) throws JRExpressionEvalException
- Specified by:
evaluateOld
in interfaceBuiltinExpressionEvaluator
- Throws:
JRExpressionEvalException
-
evaluateEstimated
public Object evaluateEstimated(DatasetExpressionEvaluator evaluator) throws JRExpressionEvalException
- Specified by:
evaluateEstimated
in interfaceBuiltinExpressionEvaluator
- Throws:
JRExpressionEvalException
-
-