Example usage for jdk.nashorn.internal.objects NativeString constructor

List of usage examples for jdk.nashorn.internal.objects NativeString constructor

Introduction

In this page you can find the example usage for jdk.nashorn.internal.objects NativeString constructor.

Prototype

@SpecializedFunction(isConstructor = true)
public static Object constructor(final boolean newObj, final Object self, final boolean arg) 

Source Link

Document

ECMA 15.5.2.1 new String ( [ value ] ) - special version with exactly one boolean arg Constructor

Usage

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

License:Mozilla Public License

public Object createString(String value) {
    return NativeString.constructor(true, null, value);
}

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

License:Mozilla Public License

public static NativeString to(String value) {
    return (NativeString) NativeString.constructor(true, null, value);
}

From source file:org.bson.jvm.nashorn.NashornBsonImplementation.java

License:Apache License

public Object createString(String string) {
    return NativeString.constructor(true, null, string);
}

From source file:org.bson.jvm.nashorn.NativeStringCodec.java

License:Apache License

public NativeString decode(BsonReader reader, DecoderContext decoderContext) {
    return (NativeString) NativeString.constructor(true, null, reader.readString());
}