org.eclipse.birt.core.script
Interface IJavascriptWrapper
- All Known Implementing Classes:
- CoreJavaScriptWrapper
public interface IJavascriptWrapper
Interface used to wrap a java object into javascript object.
Method Summary |
java.lang.Object |
wrap(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
java.lang.Object javaObject,
java.lang.Class staticType)
wrap an java object into javascript object. |
wrap
java.lang.Object wrap(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
java.lang.Object javaObject,
java.lang.Class staticType)
- wrap an java object into javascript object.
There is a list of warppers in BIRTWrapFactory, the BIRTWrapFactory will
call those wrappers one by one to try to wrap the object. If the return
object is different with the orginal one, it will terminate the loop.
- Parameters:
cx
- context used to execute the wrap.scope
- scope used to execute the wrap.javaObject
- orignal java objectstaticType
- hint used to wrap this object
- Returns:
- return wrapped object if this interface support the class, return the orignal
directly if it doesn't support such a object.
Copyright © 2008 Actuate Corp. All rights reserved.