Package net.sf.jasperreports.javascript
Class JavaScriptEvaluatorScope
- java.lang.Object
-
- net.sf.jasperreports.javascript.JavaScriptEvaluatorScope
-
public class JavaScriptEvaluatorScope extends Object
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JavaScriptEvaluatorScope.JSField
Field class used in JavaScript expressions.static class
JavaScriptEvaluatorScope.JSParameter
Parameter class used in JavaScript expressions.static class
JavaScriptEvaluatorScope.JSValue
Base JavaScript value class.static class
JavaScriptEvaluatorScope.JSVariable
Variable class used in JavaScript expressions.
-
Field Summary
Fields Modifier and Type Field Description protected static String
EVALUATOR_VAR
-
Constructor Summary
Constructors Constructor Description JavaScriptEvaluatorScope(JasperReportsContext jrContext, JREvaluator evaluator, FunctionsUtil functionsUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
ensureContext()
protected org.mozilla.javascript.Context
enter(org.mozilla.javascript.Context context)
Object
evaluateExpression(String expression)
Object
evaluateExpression(org.mozilla.javascript.Script expression)
protected org.mozilla.javascript.Script
getCompiledExpression(String expression)
protected ProtectionDomain
getProtectionDomain()
void
init(Map<String,JRFillParameter> parametersMap, Map<String,JRFillField> fieldsMap, Map<String,JRFillVariable> variablesMap)
void
setScopeVariable(String name, Object value)
-
-
-
Field Detail
-
EVALUATOR_VAR
protected static final String EVALUATOR_VAR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JavaScriptEvaluatorScope
public JavaScriptEvaluatorScope(JasperReportsContext jrContext, JREvaluator evaluator, FunctionsUtil functionsUtil)
-
-
Method Detail
-
init
public void init(Map<String,JRFillParameter> parametersMap, Map<String,JRFillField> fieldsMap, Map<String,JRFillVariable> variablesMap)
-
ensureContext
protected void ensureContext()
-
evaluateExpression
public Object evaluateExpression(org.mozilla.javascript.Script expression)
-
getCompiledExpression
protected org.mozilla.javascript.Script getCompiledExpression(String expression)
-
getProtectionDomain
protected ProtectionDomain getProtectionDomain()
-
enter
protected org.mozilla.javascript.Context enter(org.mozilla.javascript.Context context)
-
-