Class DataFactoryScriptingSupport.ScriptHelper
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.DataFactoryScriptingSupport.ScriptHelper
-
- Enclosing class:
- DataFactoryScriptingSupport
public static class DataFactoryScriptingSupport.ScriptHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ScriptHelper(ScriptContext context, String defaultScriptLanguage, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
eval(String script)
Object
eval(String script, String scriptLanguage)
Object
evalFile(String file)
Object
evalFile(String file, String language)
Object
evalFile(String file, String defaultScriptLanguage, String encoding)
-
-
-
Constructor Detail
-
ScriptHelper
public ScriptHelper(ScriptContext context, String defaultScriptLanguage, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey)
-
-
Method Detail
-
eval
public Object eval(String script) throws ScriptException
- Throws:
ScriptException
-
eval
public Object eval(String script, String scriptLanguage) throws ScriptException
- Throws:
ScriptException
-
evalFile
public Object evalFile(String file) throws ScriptException
- Throws:
ScriptException
-
evalFile
public Object evalFile(String file, String language) throws ScriptException
- Throws:
ScriptException
-
evalFile
public Object evalFile(String file, String defaultScriptLanguage, String encoding) throws ScriptException
- Throws:
ScriptException
-
-