Package org.eclipse.birt.core.script
Class ScriptContext
java.lang.Object
org.eclipse.birt.core.script.ScriptContext
- All Implemented Interfaces:
IScriptContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
evaluate
(ICompiledScript script) getScriptContext
(String language) getScriptEngine
(String scriptName) com.ibm.icu.util.TimeZone
newContext
(Object scope) newContext
(Object scope, Map<String, Object> attributes) void
removeAttribute
(String name) void
setApplicationClassLoader
(ClassLoader loader) the user can only set the application class loader to the top most context.void
setAttribute
(String name, Object value) void
setAttributes
(Map<String, Object> attributes) void
void
setScriptContext
(String language, IScriptContext scriptContext) void
setTimeZone
(com.ibm.icu.util.TimeZone timeZone)
-
Constructor Details
-
ScriptContext
public ScriptContext()
-
-
Method Details
-
getApplicationClassLoader
-
setApplicationClassLoader
the user can only set the application class loader to the top most context. -
newContext
-
newContext
-
getAttributes
-
setAttributes
-
setAttribute
- Specified by:
setAttribute
in interfaceIScriptContext
-
removeAttribute
- Specified by:
removeAttribute
in interfaceIScriptContext
-
compile
public ICompiledScript compile(String language, String fileName, int lineNo, String script) throws BirtException - Throws:
BirtException
-
evaluate
- Throws:
BirtException
-
setLocale
-
getLocale
-
setTimeZone
public void setTimeZone(com.ibm.icu.util.TimeZone timeZone) -
getTimeZone
public com.ibm.icu.util.TimeZone getTimeZone() -
close
public void close() -
getScriptEngine
- Throws:
BirtException
-
getParent
-
getScopeObject
-
getScriptContext
-
setScriptContext
-