| java.lang.Object net.sf.jasperreports.engine.fill.JREvaluator
All known Subclasses: net.sf.jasperreports.compilers.JRBshEvaluator,
JREvaluator | abstract public class JREvaluator (Code) | | Base class for the dynamically generated expression evaluator classes.
author: Lucian Chirita (lucianc@users.sourceforge.net) version: $Id: JREvaluator.java 1470 2006-11-08 16:07:35Z teodord $ |
Constructor Summary | |
protected | JREvaluator() Default constructor. |
Method Summary | |
abstract protected void | customizedInit(Map parametersMap, Map fieldsMap, Map variablesMap) Initializes the parameters, fields and variables of the evaluator. | public Object | evaluate(JRExpression expression) | abstract protected Object | evaluate(int id) Evaluates an expression using current fields and variables values. | public Object | evaluateEstimated(JRExpression expression) | abstract protected Object | evaluateEstimated(int id) Evaluates an expression using estimated variables values. | public Object | evaluateOld(JRExpression expression) | abstract protected Object | evaluateOld(int id) Evaluates an expression using old fields and variables values. | protected String | handleMissingResource(String key, Exception e) Handles the case when a resource is missing. | public void | init(Map parametersMap, Map fieldsMap, Map variablesMap, byte resourceMissingType) Initializes the evaluator by setting the parameter, field and variable objects. | public String | msg(String pattern, Object arg0) Constructs a message using a pattern with one parameter. | public String | msg(String pattern, Object arg0, Object arg1) Constructs a message using a pattern with two parameters. | public String | msg(String pattern, Object arg0, Object arg1, Object arg2) Constructs a message using a pattern with three parameters. | public String | msg(String pattern, Object[] args) Constructs a message using a pattern with an Object array parameter. | public String | str(String key) Returns a string for a given key from the resource bundle associated with the evaluator. |
JREvaluator | protected JREvaluator()(Code) | | Default constructor.
|
customizedInit | abstract protected void customizedInit(Map parametersMap, Map fieldsMap, Map variablesMap) throws JRException(Code) | | Initializes the parameters, fields and variables of the evaluator.
Parameters: parametersMap - the parameters indexed by name Parameters: fieldsMap - the fields indexed by name Parameters: variablesMap - the variables indexed by name throws: JRException - |
handleMissingResource | protected String handleMissingResource(String key, Exception e) throws JRRuntimeException(Code) | | Handles the case when a resource is missing.
Parameters: key - the resource key Parameters: e - the exception the value to use for the resource throws: JRRuntimeException - when the resource missing handling type is Error |
init | public void init(Map parametersMap, Map fieldsMap, Map variablesMap, byte resourceMissingType) throws JRException(Code) | | Initializes the evaluator by setting the parameter, field and variable objects.
Parameters: parametersMap - the parameters indexed by name Parameters: fieldsMap - the fields indexed by name Parameters: variablesMap - the variables indexed by name Parameters: resourceMissingType - the resource missing type throws: JRException - |
|
|