public class CoreJavaScriptWrapper extends java.lang.Object implements IJavascriptWrapper
Constructor and Description |
---|
CoreJavaScriptWrapper() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.Object wrap(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object javaObject, java.lang.Class staticType)
IJavascriptWrapper
wrap
in interface IJavascriptWrapper
cx
- context used to execute the wrap.scope
- scope used to execute the wrap.javaObject
- orignal java objectstaticType
- hint used to wrap this objectCopyright © 2014 OpenText Corp. All rights reserved.