net.sf.jasperreports.compilers
public class JRBshEvaluator extends JREvaluator
Constructor and Description |
---|
JRBshEvaluator(java.lang.String bshScript) |
Modifier and Type | Method and Description |
---|---|
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) |
evaluate, evaluateEstimated, evaluateOld, handleMissingResource, init, msg, msg, msg, msg, str
public JRBshEvaluator(java.lang.String bshScript) throws JRException
JRException
public void verify(java.util.Collection expressions) throws JRException
JRException
protected void customizedInit(java.util.Map pars, java.util.Map fldsm, java.util.Map varsm) throws JRException
JREvaluator
customizedInit
in class JREvaluator
pars
- the parameters indexed by namefldsm
- the fields indexed by namevarsm
- the variables indexed by nameJRException
protected java.lang.Object evaluateOld(int id) throws java.lang.Throwable
JREvaluator
evaluateOld
in class JREvaluator
id
- the expression idjava.lang.Throwable
JRExpression.EVALUATION_OLD
,
JRFillVariable.getOldValue()
,
JRFillField.getOldValue()
protected java.lang.Object evaluateEstimated(int id) throws java.lang.Throwable
JREvaluator
evaluateEstimated
in class JREvaluator
id
- the expression idjava.lang.Throwable
JRExpression.EVALUATION_ESTIMATED
,
JRFillVariable.getEstimatedValue()
protected java.lang.Object evaluate(int id) throws java.lang.Throwable
JREvaluator
evaluate
in class JREvaluator
id
- the expression idjava.lang.Throwable
JRExpression.EVALUATION_DEFAULT
,
JRFillVariable.getValue()
,
JRFillField.getValue()
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com