public final class JSModuleNamespace extends JSNonProxy
Type | Property and Description |
---|---|
boolean |
usesOrdinaryGetOwn |
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME |
static JSModuleNamespace |
INSTANCE |
EMPTY_STRING_ARRAY
Modifier and Type | Method and Description |
---|---|
static com.oracle.truffle.api.object.DynamicObject |
create(JSContext context,
JSModuleRecord module,
Map<String,ExportResolution> exports) |
boolean |
defineOwnProperty(com.oracle.truffle.api.object.DynamicObject thisObj,
Object key,
PropertyDescriptor desc,
boolean doThrow)
9.1.6 [[DefineOwnProperty]] (P, Desc).
|
boolean |
delete(com.oracle.truffle.api.object.DynamicObject thisObj,
long index,
boolean isStrict) |
boolean |
delete(com.oracle.truffle.api.object.DynamicObject thisObj,
Object key,
boolean isStrict)
9.1.10 [[Delete]] (P).
|
String |
getClassName(com.oracle.truffle.api.object.DynamicObject object)
The [[Class]] internal property.
|
static Map<String,ExportResolution> |
getExports(com.oracle.truffle.api.object.DynamicObject obj)
[[Exports]].
|
static JSModuleRecord |
getModule(com.oracle.truffle.api.object.DynamicObject obj)
[[Module]].
|
Object |
getOwnHelper(com.oracle.truffle.api.object.DynamicObject store,
Object thisObj,
Object key,
com.oracle.truffle.api.nodes.Node encapsulatingNode)
Like getOwnProperty, but returns
null if value is not present instead of undefined. |
PropertyDescriptor |
getOwnProperty(com.oracle.truffle.api.object.DynamicObject thisObj,
Object key)
9.1.5 [[GetOwnProperty]] (P).
|
List<Object> |
getOwnPropertyKeys(com.oracle.truffle.api.object.DynamicObject thisObj,
boolean strings,
boolean symbols)
GetOwnPropertyKeys (O, type).
|
boolean |
hasOwnProperty(com.oracle.truffle.api.object.DynamicObject thisObj,
Object key) |
boolean |
hasProperty(com.oracle.truffle.api.object.DynamicObject thisObj,
Object key)
9.1.7 [[HasProperty]] (P).
|
static boolean |
isJSModuleNamespace(Object obj) |
static com.oracle.truffle.api.object.Shape |
makeInitialShape(JSContext context) |
boolean |
set(com.oracle.truffle.api.object.DynamicObject thisObj,
long index,
Object value,
Object receiver,
boolean isStrict,
com.oracle.truffle.api.nodes.Node encapsulatingNode) |
boolean |
set(com.oracle.truffle.api.object.DynamicObject thisObj,
Object key,
Object value,
Object receiver,
boolean isStrict,
com.oracle.truffle.api.nodes.Node encapsulatingNode)
9.1.9 [[Set]] (P, V, Receiver).
|
boolean |
setIntegrityLevel(com.oracle.truffle.api.object.DynamicObject obj,
boolean freeze,
boolean doThrow)
ES2015 7.3.14 SetIntegrityLevel(O, level).
|
boolean |
setPrototypeOf(com.oracle.truffle.api.object.DynamicObject thisObj,
com.oracle.truffle.api.object.DynamicObject newPrototype)
9.1.2 [[SetPrototypeOf]] (V).
|
String |
toDisplayStringImpl(com.oracle.truffle.api.object.DynamicObject obj,
int depth,
boolean allowSideEffects,
JSContext context)
A more informative toString variant, mainly used for error messages.
|
boolean |
usesOrdinaryGetOwnProperty() |
checkProtoCycle, createSymbolSpeciesGetterFunction, deletePropertyDefault, getBuiltinToStringTag, getHelper, getHelper, getMethodHelper, getOwnHelper, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, preventExtensionsImpl, putConstructorSpeciesGetter, setIntegrityLevelFast, setPropertySlow, testIntegrityLevel, testIntegrityLevelFast, toString, usesOrdinaryIsExtensible
defaultToString, filterOwnPropertyKeys, formatToString, get, get, getToStringTag, isInstance, isInstance, isInstance, isInstance, makeInitialShape, ownPropertyKeys, testIntegrityLevelDefault
public boolean usesOrdinaryGetOwnProperty
usesOrdinaryGetOwnProperty
in class JSNonProxy
public static final JSModuleNamespace INSTANCE
public static final String CLASS_NAME
public static JSModuleRecord getModule(com.oracle.truffle.api.object.DynamicObject obj)
public static Map<String,ExportResolution> getExports(com.oracle.truffle.api.object.DynamicObject obj)
public static com.oracle.truffle.api.object.DynamicObject create(JSContext context, JSModuleRecord module, Map<String,ExportResolution> exports)
public static com.oracle.truffle.api.object.Shape makeInitialShape(JSContext context)
public String getClassName(com.oracle.truffle.api.object.DynamicObject object)
JSClass
getClassName
in class JSClass
object
- object to be usedpublic String toDisplayStringImpl(com.oracle.truffle.api.object.DynamicObject obj, int depth, boolean allowSideEffects, JSContext context)
JSClass
toDisplayStringImpl
in class JSNonProxy
depth
- allowed nesting depthcontext
- the current language contextpublic Object getOwnHelper(com.oracle.truffle.api.object.DynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode)
JSNonProxy
null
if value is not present instead of undefined.getOwnHelper
in class JSNonProxy
public boolean hasProperty(com.oracle.truffle.api.object.DynamicObject thisObj, Object key)
JSClass
hasProperty
in class JSNonProxy
public boolean hasOwnProperty(com.oracle.truffle.api.object.DynamicObject thisObj, Object key)
hasOwnProperty
in class JSNonProxy
public boolean delete(com.oracle.truffle.api.object.DynamicObject thisObj, long index, boolean isStrict)
delete
in class JSNonProxy
public boolean delete(com.oracle.truffle.api.object.DynamicObject thisObj, Object key, boolean isStrict)
JSClass
delete
in class JSNonProxy
public boolean setPrototypeOf(com.oracle.truffle.api.object.DynamicObject thisObj, com.oracle.truffle.api.object.DynamicObject newPrototype)
JSClass
setPrototypeOf
in class JSNonProxy
public boolean defineOwnProperty(com.oracle.truffle.api.object.DynamicObject thisObj, Object key, PropertyDescriptor desc, boolean doThrow)
JSClass
defineOwnProperty
in class JSNonProxy
public PropertyDescriptor getOwnProperty(com.oracle.truffle.api.object.DynamicObject thisObj, Object key)
JSClass
getOwnProperty
in class JSNonProxy
public static boolean isJSModuleNamespace(Object obj)
public List<Object> getOwnPropertyKeys(com.oracle.truffle.api.object.DynamicObject thisObj, boolean strings, boolean symbols)
JSClass
getOwnPropertyKeys
in class JSNonProxy
public boolean setIntegrityLevel(com.oracle.truffle.api.object.DynamicObject obj, boolean freeze, boolean doThrow)
JSClass
setIntegrityLevel
in class JSNonProxy
public boolean set(com.oracle.truffle.api.object.DynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode)
JSClass
set
in class JSNonProxy
public boolean set(com.oracle.truffle.api.object.DynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode)
set
in class JSNonProxy
public boolean usesOrdinaryGetOwnProperty()
usesOrdinaryGetOwnProperty
in class JSNonProxy