public final class JSSet extends JSNonProxy implements JSConstructorFactory.Default.WithSpecies, PrototypeSupplier
usesOrdinaryGetOwnProperty
JSConstructorFactory.Default.WithSpecies
JSConstructorFactory.Default, JSConstructorFactory.WithFunctions, JSConstructorFactory.WithFunctionsAndSpecies
Modifier and Type | Field and Description |
---|---|
static com.oracle.truffle.api.strings.TruffleString |
CLASS_NAME |
static JSSet |
INSTANCE |
static com.oracle.truffle.api.strings.TruffleString |
ITERATOR_CLASS_NAME |
static com.oracle.truffle.api.strings.TruffleString |
ITERATOR_PROTOTYPE_NAME |
static com.oracle.truffle.api.strings.TruffleString |
PROTOTYPE_NAME |
static com.oracle.truffle.api.object.HiddenKey |
SET_ITERATION_KIND_ID |
GET_SYMBOL_SPECIES_NAME
Modifier and Type | Method and Description |
---|---|
static JSSetObject |
create(JSContext context,
JSRealm realm) |
static JSConstructor |
createConstructor(JSRealm realm) |
JSDynamicObject |
createPrototype(JSRealm realm,
JSFunctionObject ctor) |
com.oracle.truffle.api.strings.TruffleString |
getClassName() |
com.oracle.truffle.api.strings.TruffleString |
getClassName(JSDynamicObject object)
The [[Class]] internal property.
|
static JSHashMap |
getInternalSet(JSDynamicObject obj) |
JSDynamicObject |
getIntrinsicDefaultProto(JSRealm realm)
Allows invokevirtual of this method instead of invokeinterface.
|
static int |
getSetSize(JSDynamicObject obj) |
static boolean |
isJSSet(Object obj) |
com.oracle.truffle.api.object.Shape |
makeInitialShape(JSContext context,
JSDynamicObject prototype) |
static Object |
normalize(Object value) |
static Object |
normalizeDouble(double value) |
com.oracle.truffle.api.strings.TruffleString |
toDisplayStringImpl(JSDynamicObject obj,
boolean allowSideEffects,
ToDisplayStringFormat format,
int depth)
A more informative toString variant, mainly used for error messages.
|
checkProtoCycle, createSymbolSpeciesGetterFunction, defineOwnProperty, delete, delete, deletePropertyDefault, getBuiltinToStringTag, getHelper, getHelper, getMethodHelper, getOwnHelper, getOwnHelper, getOwnProperty, getOwnPropertyKeys, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasOwnProperty, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, preventExtensionsImpl, putConstructorSpeciesGetter, set, set, setIntegrityLevel, setIntegrityLevelFast, setPropertySlow, setPrototypeOf, testIntegrityLevel, testIntegrityLevelFast, toString, usesOrdinaryGetOwnProperty, usesOrdinaryIsExtensible
defaultToString, filterOwnPropertyKeys, formatToString, get, get, getToStringTag, isInstance, isInstance, isInstance, isInstance, ownPropertyKeys, testIntegrityLevelDefault
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
fillConstructor
createConstructorAndPrototype
createConstructorObject
public static final JSSet INSTANCE
public static final com.oracle.truffle.api.strings.TruffleString CLASS_NAME
public static final com.oracle.truffle.api.strings.TruffleString PROTOTYPE_NAME
public static final com.oracle.truffle.api.strings.TruffleString ITERATOR_CLASS_NAME
public static final com.oracle.truffle.api.strings.TruffleString ITERATOR_PROTOTYPE_NAME
public static final com.oracle.truffle.api.object.HiddenKey SET_ITERATION_KIND_ID
public static JSSetObject create(JSContext context, JSRealm realm)
public static Object normalizeDouble(double value)
public static JSHashMap getInternalSet(JSDynamicObject obj)
public static int getSetSize(JSDynamicObject obj)
public JSDynamicObject createPrototype(JSRealm realm, JSFunctionObject ctor)
createPrototype
in interface JSConstructorFactory
public com.oracle.truffle.api.object.Shape makeInitialShape(JSContext context, JSDynamicObject prototype)
makeInitialShape
in class JSClass
public static JSConstructor createConstructor(JSRealm realm)
public com.oracle.truffle.api.strings.TruffleString getClassName()
getClassName
in interface JSConstructorFactory
public com.oracle.truffle.api.strings.TruffleString getClassName(JSDynamicObject object)
JSClass
getClassName
in class JSClass
object
- object to be usedpublic com.oracle.truffle.api.strings.TruffleString toDisplayStringImpl(JSDynamicObject obj, boolean allowSideEffects, ToDisplayStringFormat format, int depth)
JSClass
toDisplayStringImpl
in class JSNonProxy
format
- formatting parametersdepth
- current nesting depthpublic static boolean isJSSet(Object obj)
public JSDynamicObject getIntrinsicDefaultProto(JSRealm realm)
JSClass
PrototypeSupplier
.getIntrinsicDefaultProto
in interface PrototypeSupplier
getIntrinsicDefaultProto
in class JSClass
PrototypeSupplier.getIntrinsicDefaultProto(com.oracle.truffle.js.runtime.JSRealm)