Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.birt.core.script
Class CoreJavaScriptWrapper

    java.lang.Object
      org.eclipse.birt.core.script.CoreJavaScriptWrapper

All Implemented Interfaces:
  IJavascriptWrapper

    public class CoreJavaScriptWrapper

extends java.lang.Object
implements IJavascriptWrapper

Constructor Summary
`CoreJavaScriptWrapper()`

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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CoreJavaScriptWrapper

    public CoreJavaScriptWrapper()

Method Detail

### wrap

    public java.lang.Object wrap(org.mozilla.javascript.Context cx,
                                 org.mozilla.javascript.Scriptable scope,
                                 java.lang.Object javaObject,
                                 java.lang.Class staticType)

  Description copied from interface: `IJavascriptWrapper`
  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.

  Specified by:
    `wrap` in interface `IJavascriptWrapper`
  Parameters:
    `cx` - context used to execute the wrap.
    `scope` - scope used to execute the wrap.
    `javaObject` - orignal java object
    `staticType` - 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 Actuate Corp. All rights reserved.