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 TypeMethodDescriptionvoidclose()evaluate(ICompiledScript script) getScriptContext(String language) getScriptEngine(String scriptName) com.ibm.icu.util.TimeZonenewContext(Object scope) newContext(Object scope, Map<String, Object> attributes) voidremoveAttribute(String name) voidsetApplicationClassLoader(ClassLoader loader) the user can only set the application class loader to the top most context.voidsetAttribute(String name, Object value) voidsetAttributes(Map<String, Object> attributes) voidvoidsetScriptContext(String language, IScriptContext scriptContext) voidsetTimeZone(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:
setAttributein interfaceIScriptContext
-
removeAttribute
- Specified by:
removeAttributein 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
-