Example usage for jdk.nashorn.internal.objects Global toObject

List of usage examples for jdk.nashorn.internal.objects Global toObject

Introduction

In this page you can find the example usage for jdk.nashorn.internal.objects Global toObject.

Prototype

public static Object toObject(final Object obj) 

Source Link

Document

ECMA 9.9 ToObject implementation

Usage

From source file:com.threecrickets.jvm.json.nashorn.NashornJsonImplementation.java

License:Mozilla Public License

public Object createInteger(int value) {
    return Global.toObject(value);
}

From source file:com.threecrickets.jvm.json.nashorn.NashornJsonImplementation.java

License:Mozilla Public License

public Object createLong(long value) {
    return Global.toObject(value);
}

From source file:com.threecrickets.jvm.json.nashorn.util.NashornNativeUtil.java

License:Mozilla Public License

public static ScriptObject wrap(Object value) {
    return (ScriptObject) Global.toObject(value);
}