List of usage examples for jdk.nashorn.internal.objects NativeString constructor
@SpecializedFunction(isConstructor = true) public static Object constructor(final boolean newObj, final Object self, final boolean arg)
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()); }