Package org.eclipse.birt.core.script
Interface IScriptEngine
public interface IScriptEngine
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the engine.compile
(ScriptContext scriptContext, String fileName, int lineNumber, String script) Compiles the script for later execution.evaluate
(ScriptContext scriptContext, ICompiledScript script) Evaluates a compiled script.Returns the script engine factory which created this engine instance.Returns name of script.void
setApplicationClassLoader
(ClassLoader loader) Sets application class loader.void
Sets locale.void
setTimeZone
(com.ibm.icu.util.TimeZone zone) Sets time zone.
-
Method Details
-
getFactory
IScriptEngineFactory getFactory()Returns the script engine factory which created this engine instance. -
getScriptLanguage
String getScriptLanguage()Returns name of script.- Returns:
-
evaluate
Evaluates a compiled script.- Parameters:
script
-- Returns:
- Throws:
BirtException
-
compile
ICompiledScript compile(ScriptContext scriptContext, String fileName, int lineNumber, String script) throws BirtException Compiles the script for later execution.- Parameters:
script
-id
-lineNumber
-- Returns:
- Throws:
BirtException
-
setTimeZone
void setTimeZone(com.ibm.icu.util.TimeZone zone) Sets time zone. -
setLocale
Sets locale. -
setApplicationClassLoader
Sets application class loader. -
close
void close()Closes the engine.
-