Class AbstractJSClass
java.lang.Object
com.oracle.truffle.js.runtime.builtins.JSClass
com.oracle.truffle.js.runtime.builtins.AbstractJSClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandefineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor desc, boolean doThrow) 9.1.6 [[DefineOwnProperty]] (P, Desc).booleandelete(JSDynamicObject thisObj, long index, boolean isStrict) booleandelete(JSDynamicObject thisObj, Object key, boolean isStrict) 9.1.10 [[Delete]] (P).getHelper(JSDynamicObject store, Object thisObj, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) getHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) getMethodHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) getOwnHelper(JSDynamicObject store, Object thisObj, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) getOwnHelper(JSDynamicObject store, Object thisObj, Object name, com.oracle.truffle.api.nodes.Node encapsulatingNode) getOwnProperty(JSDynamicObject thisObj, Object key) 9.1.5 [[GetOwnProperty]] (P).getOwnPropertyKeys(JSDynamicObject thisObj, boolean strings, boolean symbols) GetOwnPropertyKeys (O, type).getPrototypeOf(JSDynamicObject thisObj) 9.1.1 [[GetPrototypeOf]] ().booleanIf true,JSClass.ownPropertyKeys(JSDynamicObject)andJSShape.getPropertyKeyList(Shape, boolean, boolean)enumerate the same keys.booleanhasOwnProperty(JSDynamicObject thisObj, long index) booleanhasOwnProperty(JSDynamicObject thisObj, Object key) booleanhasProperty(JSDynamicObject thisObj, long index) booleanhasProperty(JSDynamicObject thisObj, Object key) 9.1.7 [[HasProperty]] (P).booleanisExtensible(JSDynamicObject thisObj) 9.1.3 [[IsExtensible]] ().booleanpreventExtensions(JSDynamicObject thisObj, boolean doThrow) 9.1.4 [[PreventExtensions]] ().booleanset(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) booleanset(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) 9.1.9 [[Set]] (P, V, Receiver).booleansetPrototypeOf(JSDynamicObject thisObj, JSDynamicObject newPrototype) 9.1.2 [[SetPrototypeOf]] (V).booleanbooleanMethods inherited from class JSClass
filterOwnPropertyKeys, get, get, getIntrinsicDefaultProto, isInstance, isInstance, isInstance, isInstance, makeInitialShape, ownPropertyKeys, toString
-
Constructor Details
-
AbstractJSClass
public AbstractJSClass()
-
-
Method Details
-
getOwnHelper
public Object getOwnHelper(JSDynamicObject store, Object thisObj, Object name, com.oracle.truffle.api.nodes.Node encapsulatingNode) - Specified by:
getOwnHelperin classJSClass
-
getOwnHelper
public Object getOwnHelper(JSDynamicObject store, Object thisObj, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) - Specified by:
getOwnHelperin classJSClass
-
getMethodHelper
public Object getMethodHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) - Specified by:
getMethodHelperin classJSClass
-
getHelper
-
getHelper
public Object getHelper(JSDynamicObject store, Object thisObj, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode) -
hasOwnProperty
- Specified by:
hasOwnPropertyin classJSClass
-
hasOwnProperty
- Specified by:
hasOwnPropertyin classJSClass
-
hasProperty
Description copied from class:JSClass9.1.7 [[HasProperty]] (P).- Specified by:
hasPropertyin classJSClass
-
hasProperty
- Specified by:
hasPropertyin classJSClass
-
set
-
set
public boolean set(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode) -
delete
Description copied from class:JSClass9.1.10 [[Delete]] (P). -
delete
-
getOwnPropertyKeys
Description copied from class:JSClassGetOwnPropertyKeys (O, type).- Specified by:
getOwnPropertyKeysin classJSClass- Returns:
- a List of the keys of all own properties of that object with the specified types
-
defineOwnProperty
public boolean defineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor desc, boolean doThrow) Description copied from class:JSClass9.1.6 [[DefineOwnProperty]] (P, Desc).- Specified by:
defineOwnPropertyin classJSClass
-
preventExtensions
Description copied from class:JSClass9.1.4 [[PreventExtensions]] ().- Specified by:
preventExtensionsin classJSClass
-
isExtensible
Description copied from class:JSClass9.1.3 [[IsExtensible]] ().- Specified by:
isExtensiblein classJSClass
-
hasOnlyShapeProperties
Description copied from class:JSClassIf true,JSClass.ownPropertyKeys(JSDynamicObject)andJSShape.getPropertyKeyList(Shape, boolean, boolean)enumerate the same keys.- Specified by:
hasOnlyShapePropertiesin classJSClass
-
usesOrdinaryGetOwnProperty
public boolean usesOrdinaryGetOwnProperty()- Specified by:
usesOrdinaryGetOwnPropertyin classJSClass
-
usesOrdinaryIsExtensible
public boolean usesOrdinaryIsExtensible()- Specified by:
usesOrdinaryIsExtensiblein classJSClass
-
getPrototypeOf
Description copied from class:JSClass9.1.1 [[GetPrototypeOf]] ().- Specified by:
getPrototypeOfin classJSClass
-
setPrototypeOf
Description copied from class:JSClass9.1.2 [[SetPrototypeOf]] (V).- Specified by:
setPrototypeOfin classJSClass
-
getOwnProperty
Description copied from class:JSClass9.1.5 [[GetOwnProperty]] (P).- Specified by:
getOwnPropertyin classJSClass
-