MCPcopy Create free account
hub / github.com/mozilla/rhino / wrap

Method wrap

rhino/src/main/java/org/mozilla/javascript/WrapFactory.java:31–33  ·  view source on GitHub ↗

@see #wrap(Context, VarScope, Object, TypeInfo)

(Context cx, VarScope scope, Object obj, Class<?> staticType)

Source from the content-addressed store, hash-verified

29 * @see #wrap(Context, VarScope, Object, TypeInfo)
30 */
31 public final Object wrap(Context cx, VarScope scope, Object obj, Class<?> staticType) {
32 return wrap(cx, scope, obj, TypeInfoFactory.GLOBAL.create(staticType));
33 }
34
35 /**
36 * Wrap the object.

Callers 15

getMethod · 0.95
nextValueMethod · 0.95
invokeImplMethod · 0.95
getGlobalMethod · 0.95
callMethod · 0.45
getMethod · 0.45
callMethod · 0.45
toObjectMethod · 0.45
newCatchScopeMethod · 0.45
wrapExceptionMethod · 0.45
getMethod · 0.45
jsConstructorCallMethod · 0.45

Calls 5

isJavaPrimitiveWrapMethod · 0.95
wrapAsJavaObjectMethod · 0.95
createMethod · 0.65
isPrimitiveMethod · 0.65
valueOfMethod · 0.45

Tested by 1

getGlobalMethod · 0.76