public class PrimitiveWrapFactory
extends org.mozilla.javascript.WrapFactory
Note that calling "new java.lang.String('foo')" in JavaScript with this wrap factory enabled will still produce a wrapped Java object since the WrapFactory.wrapNewObject method is not overridden.
The PrimitiveWrapFactory is enabled on a Context by calling setWrapFactory on that context.
| Constructor and Description |
|---|
PrimitiveWrapFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
wrap(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
Object obj,
Class staticType) |
? Copyright 2013 BMC Software, Inc.