net.sf.jasperreports.compilers
Class JRBshEvaluator

java.lang.Object
  extended by net.sf.jasperreports.engine.fill.JREvaluator
      extended by net.sf.jasperreports.compilers.JRBshEvaluator
All Implemented Interfaces:
DatasetExpressionEvaluator

public class JRBshEvaluator
extends JREvaluator

Version:
$Id: JRBshEvaluator.java 3939 2010-08-20 09:52:00Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Constructor Summary
JRBshEvaluator(java.lang.String bshScript)
           
 
Method Summary
protected  void customizedInit(java.util.Map pars, java.util.Map fldsm, java.util.Map varsm)
          Initializes the parameters, fields and variables of the evaluator.
protected  java.lang.Object evaluate(int id)
          Evaluates an expression using current fields and variables values.
protected  java.lang.Object evaluateEstimated(int id)
          Evaluates an expression using estimated variables values.
protected  java.lang.Object evaluateOld(int id)
          Evaluates an expression using old fields and variables values.
 void verify(java.util.Collection expressions)
           
 
Methods inherited from class net.sf.jasperreports.engine.fill.JREvaluator
evaluate, evaluateEstimated, evaluateOld, handleMissingResource, init, msg, msg, msg, msg, str
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRBshEvaluator

public JRBshEvaluator(java.lang.String bshScript)
               throws JRException
Throws:
JRException
Method Detail

verify

public void verify(java.util.Collection expressions)
            throws JRException
Throws:
JRException

customizedInit

protected void customizedInit(java.util.Map pars,
                              java.util.Map fldsm,
                              java.util.Map varsm)
                       throws JRException
Description copied from class: JREvaluator
Initializes the parameters, fields and variables of the evaluator.

Specified by:
customizedInit in class JREvaluator
Parameters:
pars - the parameters indexed by name
fldsm - the fields indexed by name
varsm - the variables indexed by name
Throws:
JRException

evaluateOld

protected java.lang.Object evaluateOld(int id)
                                throws java.lang.Throwable
Description copied from class: JREvaluator
Evaluates an expression using old fields and variables values.

Specified by:
evaluateOld in class JREvaluator
Parameters:
id - the expression id
Returns:
the result of the evaluation
Throws:
java.lang.Throwable
See Also:
JRExpression.EVALUATION_OLD, JRFillVariable.getOldValue(), JRFillField.getOldValue()

evaluateEstimated

protected java.lang.Object evaluateEstimated(int id)
                                      throws java.lang.Throwable
Description copied from class: JREvaluator
Evaluates an expression using estimated variables values.

Specified by:
evaluateEstimated in class JREvaluator
Parameters:
id - the expression id
Returns:
the result of the evaluation
Throws:
java.lang.Throwable
See Also:
JRExpression.EVALUATION_ESTIMATED, JRFillVariable.getEstimatedValue()

evaluate

protected java.lang.Object evaluate(int id)
                             throws java.lang.Throwable
Description copied from class: JREvaluator
Evaluates an expression using current fields and variables values.

Specified by:
evaluate in class JREvaluator
Parameters:
id - the expression id
Returns:
the result of the evaluation
Throws:
java.lang.Throwable
See Also:
JRExpression.EVALUATION_DEFAULT, JRFillVariable.getValue(), JRFillField.getValue()


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com