org.pentaho.reporting.engine.classic.core.modules.misc.datafactory
Class DataFactoryScriptingSupport.ScriptHelper

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.DataFactoryScriptingSupport.ScriptHelper
Enclosing class:
DataFactoryScriptingSupport

public static class DataFactoryScriptingSupport.ScriptHelper
extends Object


Constructor Summary
DataFactoryScriptingSupport.ScriptHelper(javax.script.ScriptContext context, String defaultScriptLanguage, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.libraries.resourceloader.ResourceKey contextKey)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFactoryScriptingSupport.ScriptHelper

public DataFactoryScriptingSupport.ScriptHelper(javax.script.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 javax.script.ScriptException
Throws:
javax.script.ScriptException

eval

public Object eval(String script,
                   String scriptLanguage)
            throws javax.script.ScriptException
Throws:
javax.script.ScriptException

evalFile

public Object evalFile(String file)
                throws javax.script.ScriptException
Throws:
javax.script.ScriptException

evalFile

public Object evalFile(String file,
                       String language)
                throws javax.script.ScriptException
Throws:
javax.script.ScriptException

evalFile

public Object evalFile(String file,
                       String defaultScriptLanguage,
                       String encoding)
                throws javax.script.ScriptException
Throws:
javax.script.ScriptException