public final class JSObjectPrototype extends JSNonProxy
| Type | Property and Description |
|---|---|
boolean |
usesOrdinaryGetOwn |
| Modifier and Type | Field and Description |
|---|---|
static JSBuiltinsContainer |
BUILTINS |
static com.oracle.truffle.api.strings.TruffleString |
CLASS_NAME |
static JSObjectPrototype |
INSTANCE |
GET_SYMBOL_SPECIES_NAME| Modifier and Type | Method and Description |
|---|---|
static JSObjectPrototypeObject |
create(JSContext context) |
static JSObjectPrototypeObject |
create(com.oracle.truffle.api.object.Shape shape) |
boolean |
defineOwnProperty(JSDynamicObject thisObj,
Object key,
PropertyDescriptor desc,
boolean doThrow)
9.1.6 [[DefineOwnProperty]] (P, Desc).
|
boolean |
delete(JSDynamicObject thisObj,
long index,
boolean isStrict) |
boolean |
delete(JSDynamicObject thisObj,
Object key,
boolean isStrict)
9.1.10 [[Delete]] (P).
|
com.oracle.truffle.api.strings.TruffleString |
getClassName(JSDynamicObject object)
The [[Class]] internal property.
|
Object |
getOwnHelper(JSDynamicObject store,
Object thisObj,
long index,
com.oracle.truffle.api.nodes.Node encapsulatingNode)
Like getOwnProperty, but returns
null if value is not present instead of undefined. |
Object |
getOwnHelper(JSDynamicObject 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(JSDynamicObject thisObj,
Object key)
9.1.5 [[GetOwnProperty]] (P).
|
List<Object> |
getOwnPropertyKeys(JSDynamicObject thisObj,
boolean strings,
boolean symbols)
GetOwnPropertyKeys (O, type).
|
boolean |
hasOnlyShapeProperties(JSDynamicObject thisObj)
If true,
JSClass.ownPropertyKeys(com.oracle.truffle.js.runtime.objects.JSDynamicObject) and JSShape.getProperties(com.oracle.truffle.api.object.Shape) enumerate the same keys. |
boolean |
hasOwnProperty(JSDynamicObject thisObj,
long index) |
boolean |
hasOwnProperty(JSDynamicObject thisObj,
Object key) |
static boolean |
isJSObjectPrototype(Object obj) |
boolean |
set(JSDynamicObject thisObj,
long index,
Object value,
Object receiver,
boolean isStrict,
com.oracle.truffle.api.nodes.Node encapsulatingNode) |
boolean |
set(JSDynamicObject thisObj,
Object key,
Object value,
Object receiver,
boolean isStrict,
com.oracle.truffle.api.nodes.Node encapsulatingNode)
9.1.9 [[Set]] (P, V, Receiver).
|
boolean |
setPrototypeOf(JSDynamicObject thisObj,
JSDynamicObject newPrototype)
9.4.7.2 SetImmutablePrototype ( O, V ).
|
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.
|
boolean |
usesOrdinaryGetOwnProperty() |
checkProtoCycle, createSymbolSpeciesGetterFunction, deletePropertyDefault, getBuiltinToStringTag, getHelper, getHelper, getMethodHelper, getPrototypeOf, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryIsExtensible, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, preventExtensionsImpl, putConstructorSpeciesGetter, setIntegrityLevel, setIntegrityLevelFast, setPropertySlow, testIntegrityLevel, testIntegrityLevelFast, toString, usesOrdinaryIsExtensibledefaultToString, filterOwnPropertyKeys, formatToString, get, get, getIntrinsicDefaultProto, getToStringTag, isInstance, isInstance, isInstance, isInstance, makeInitialShape, ownPropertyKeys, testIntegrityLevelDefaultpublic boolean usesOrdinaryGetOwnProperty
usesOrdinaryGetOwnProperty in class JSNonProxypublic static final com.oracle.truffle.api.strings.TruffleString CLASS_NAME
public static final JSObjectPrototype INSTANCE
public static final JSBuiltinsContainer BUILTINS
public static JSObjectPrototypeObject create(JSContext context)
public static boolean isJSObjectPrototype(Object obj)
public com.oracle.truffle.api.strings.TruffleString getClassName(JSDynamicObject object)
JSClassgetClassName in class JSClassobject - object to be usedpublic com.oracle.truffle.api.strings.TruffleString toDisplayStringImpl(JSDynamicObject obj, boolean allowSideEffects, ToDisplayStringFormat format, int depth)
JSClasstoDisplayStringImpl in class JSNonProxyformat - formatting parametersdepth - current nesting depthpublic boolean hasOwnProperty(JSDynamicObject thisObj, Object key)
hasOwnProperty in class JSNonProxypublic boolean hasOwnProperty(JSDynamicObject thisObj, long index)
hasOwnProperty in class JSNonProxypublic Object getOwnHelper(JSDynamicObject store, Object thisObj, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode)
JSNonProxynull if value is not present instead of undefined.getOwnHelper in class JSNonProxypublic Object getOwnHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode)
JSNonProxynull if value is not present instead of undefined.getOwnHelper in class JSNonProxypublic boolean delete(JSDynamicObject thisObj, Object key, boolean isStrict)
JSClassdelete in class JSNonProxypublic boolean delete(JSDynamicObject thisObj, long index, boolean isStrict)
delete in class JSNonProxypublic List<Object> getOwnPropertyKeys(JSDynamicObject thisObj, boolean strings, boolean symbols)
JSClassgetOwnPropertyKeys in class JSNonProxypublic boolean hasOnlyShapeProperties(JSDynamicObject thisObj)
JSClassJSClass.ownPropertyKeys(com.oracle.truffle.js.runtime.objects.JSDynamicObject) and JSShape.getProperties(com.oracle.truffle.api.object.Shape) enumerate the same keys.hasOnlyShapeProperties in class JSNonProxypublic PropertyDescriptor getOwnProperty(JSDynamicObject thisObj, Object key)
JSClassgetOwnProperty in class JSNonProxypublic boolean usesOrdinaryGetOwnProperty()
usesOrdinaryGetOwnProperty in class JSNonProxypublic boolean setPrototypeOf(JSDynamicObject thisObj, JSDynamicObject newPrototype)
setPrototypeOf in class JSNonProxypublic boolean set(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode)
set in class JSNonProxypublic boolean set(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode)
JSClassset in class JSNonProxypublic boolean defineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor desc, boolean doThrow)
JSClassdefineOwnProperty in class JSNonProxypublic static JSObjectPrototypeObject create(com.oracle.truffle.api.object.Shape shape)