net.sf.jasperreports.components.table.fill
Class ConstantBuiltinExpression

java.lang.Object
  extended by net.sf.jasperreports.components.table.fill.ConstantBuiltinExpression
All Implemented Interfaces:
BuiltinExpressionEvaluator

public class ConstantBuiltinExpression
extends Object
implements BuiltinExpressionEvaluator

Builtin expression that evaluates to a constant value.

Version:
$Id: ConstantBuiltinExpression.java 5123 2012-03-23 21:49:01Z teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)

Constructor Summary
ConstantBuiltinExpression(Object value)
          Creates an expression evaluator for a specified value.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface BuiltinExpressionEvaluator
Throws:
JRException

evaluate

public Object evaluate(DatasetExpressionEvaluator evaluator)
                throws JRExpressionEvalException
Specified by:
evaluate in interface BuiltinExpressionEvaluator
Throws:
JRExpressionEvalException

evaluateOld

public Object evaluateOld(DatasetExpressionEvaluator evaluator)
                   throws JRExpressionEvalException
Specified by:
evaluateOld in interface BuiltinExpressionEvaluator
Throws:
JRExpressionEvalException

evaluateEstimated

public Object evaluateEstimated(DatasetExpressionEvaluator evaluator)
                         throws JRExpressionEvalException
Specified by:
evaluateEstimated in interface BuiltinExpressionEvaluator
Throws:
JRExpressionEvalException


Copyright © 2012. All Rights Reserved.