public final class JSAdapter extends AbstractJSClass implements JSConstructorFactory.Default, PrototypeSupplier
usesOrdinaryGetOwnPropertyJSConstructorFactory.Default.WithSpeciesJSConstructorFactory.Default, JSConstructorFactory.WithFunctions, JSConstructorFactory.WithFunctionsAndSpecies| Modifier and Type | Field and Description |
|---|---|
static com.oracle.truffle.api.strings.TruffleString |
CLASS_NAME |
static com.oracle.truffle.api.strings.TruffleString |
GET_IDS |
static com.oracle.truffle.api.strings.TruffleString |
GET_VALUES |
static JSAdapter |
INSTANCE |
static com.oracle.truffle.api.strings.TruffleString |
NEW |
| Modifier and Type | Method and Description |
|---|---|
static JSObject |
create(JSContext context,
JSRealm realm,
JSDynamicObject adaptee,
JSDynamicObject overrides,
JSDynamicObject protoOpt) |
static JSConstructor |
createConstructor(JSRealm realm) |
JSDynamicObject |
createPrototype(JSRealm realm,
JSFunctionObject ctor) |
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).
|
static JSDynamicObject |
getAdaptee(JSDynamicObject obj) |
com.oracle.truffle.api.strings.TruffleString |
getClassName() |
com.oracle.truffle.api.strings.TruffleString |
getClassName(JSDynamicObject object)
The [[Class]] internal property.
|
JSDynamicObject |
getIntrinsicDefaultProto(JSRealm realm)
Allows invokevirtual of this method instead of invokeinterface.
|
Object |
getMethodHelper(JSDynamicObject store,
Object thisObj,
Object key,
com.oracle.truffle.api.nodes.Node encapsulatingNode) |
static JSDynamicObject |
getOverrides(JSDynamicObject obj) |
Object |
getOwnHelper(JSDynamicObject store,
Object thisObj,
long index,
com.oracle.truffle.api.nodes.Node encapsulatingNode) |
Object |
getOwnHelper(JSDynamicObject store,
Object thisObj,
Object key,
com.oracle.truffle.api.nodes.Node encapsulatingNode) |
PropertyDescriptor |
getOwnProperty(JSDynamicObject thisObj,
Object key)
9.1.5 [[GetOwnProperty]] (P).
|
List<Object> |
getOwnPropertyKeys(JSDynamicObject thisObj,
boolean strings,
boolean symbols)
GetOwnPropertyKeys (O, type).
|
JSDynamicObject |
getPrototypeOf(JSDynamicObject thisObj)
9.1.1 [[GetPrototypeOf]] ().
|
boolean |
hasOwnProperty(JSDynamicObject thisObj,
long index) |
boolean |
hasOwnProperty(JSDynamicObject thisObj,
Object key) |
boolean |
isExtensible(JSDynamicObject thisObj)
9.1.3 [[IsExtensible]] ().
|
static boolean |
isJSAdapter(Object obj) |
com.oracle.truffle.api.object.Shape |
makeInitialShape(JSContext context,
JSDynamicObject prototype) |
boolean |
preventExtensions(JSDynamicObject thisObj,
boolean doThrow)
9.1.4 [[PreventExtensions]] ().
|
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.1.2 [[SetPrototypeOf]] (V).
|
com.oracle.truffle.api.strings.TruffleString |
toDisplayStringImpl(JSDynamicObject object,
boolean allowSideEffects,
ToDisplayStringFormat format,
int depth)
A more informative toString variant, mainly used for error messages.
|
String |
toString() |
getHelper, getHelper, hasOnlyShapeProperties, hasProperty, hasProperty, usesOrdinaryGetOwnProperty, usesOrdinaryIsExtensibledefaultToString, filterOwnPropertyKeys, formatToString, get, get, getBuiltinToStringTag, getToStringTag, isInstance, isInstance, isInstance, isInstance, ownPropertyKeys, setIntegrityLevel, testIntegrityLevel, testIntegrityLevelDefaultclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateConstructorAndPrototypecreateConstructorObject, fillConstructorpublic static final com.oracle.truffle.api.strings.TruffleString CLASS_NAME
public static final JSAdapter INSTANCE
public static final com.oracle.truffle.api.strings.TruffleString NEW
public static final com.oracle.truffle.api.strings.TruffleString GET_IDS
public static final com.oracle.truffle.api.strings.TruffleString GET_VALUES
public com.oracle.truffle.api.strings.TruffleString getClassName()
getClassName in interface JSConstructorFactorypublic com.oracle.truffle.api.strings.TruffleString getClassName(JSDynamicObject object)
JSClassgetClassName in class JSClassobject - object to be usedpublic static JSObject create(JSContext context, JSRealm realm, JSDynamicObject adaptee, JSDynamicObject overrides, JSDynamicObject protoOpt)
public static JSDynamicObject getAdaptee(JSDynamicObject obj)
public static JSDynamicObject getOverrides(JSDynamicObject obj)
public static boolean isJSAdapter(Object obj)
public Object getOwnHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode)
getOwnHelper in class AbstractJSClasspublic Object getOwnHelper(JSDynamicObject store, Object thisObj, long index, com.oracle.truffle.api.nodes.Node encapsulatingNode)
getOwnHelper in class AbstractJSClasspublic boolean hasOwnProperty(JSDynamicObject thisObj, long index)
hasOwnProperty in class AbstractJSClasspublic boolean hasOwnProperty(JSDynamicObject thisObj, Object key)
hasOwnProperty in class AbstractJSClasspublic boolean set(JSDynamicObject thisObj, long index, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode)
set in class AbstractJSClasspublic boolean set(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, com.oracle.truffle.api.nodes.Node encapsulatingNode)
JSClassset in class AbstractJSClasspublic boolean delete(JSDynamicObject thisObj, long index, boolean isStrict)
delete in class AbstractJSClasspublic boolean delete(JSDynamicObject thisObj, Object key, boolean isStrict)
JSClassdelete in class AbstractJSClasspublic boolean defineOwnProperty(JSDynamicObject thisObj, Object key, PropertyDescriptor desc, boolean doThrow)
JSClassdefineOwnProperty in class AbstractJSClasspublic boolean preventExtensions(JSDynamicObject thisObj, boolean doThrow)
JSClasspreventExtensions in class AbstractJSClasspublic boolean isExtensible(JSDynamicObject thisObj)
JSClassisExtensible in class AbstractJSClasspublic List<Object> getOwnPropertyKeys(JSDynamicObject thisObj, boolean strings, boolean symbols)
JSClassgetOwnPropertyKeys in class AbstractJSClasspublic com.oracle.truffle.api.strings.TruffleString toDisplayStringImpl(JSDynamicObject object, boolean allowSideEffects, ToDisplayStringFormat format, int depth)
JSClasstoDisplayStringImpl in class JSClassformat - formatting parametersdepth - current nesting depthpublic JSDynamicObject createPrototype(JSRealm realm, JSFunctionObject ctor)
createPrototype in interface JSConstructorFactorypublic com.oracle.truffle.api.object.Shape makeInitialShape(JSContext context, JSDynamicObject prototype)
makeInitialShape in class JSClasspublic static JSConstructor createConstructor(JSRealm realm)
public Object getMethodHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode)
getMethodHelper in class AbstractJSClasspublic JSDynamicObject getPrototypeOf(JSDynamicObject thisObj)
JSClassgetPrototypeOf in class AbstractJSClasspublic boolean setPrototypeOf(JSDynamicObject thisObj, JSDynamicObject newPrototype)
JSClasssetPrototypeOf in class AbstractJSClasspublic PropertyDescriptor getOwnProperty(JSDynamicObject thisObj, Object key)
JSClassgetOwnProperty in class AbstractJSClasspublic JSDynamicObject getIntrinsicDefaultProto(JSRealm realm)
JSClassPrototypeSupplier.getIntrinsicDefaultProto in interface PrototypeSuppliergetIntrinsicDefaultProto in class JSClassPrototypeSupplier.getIntrinsicDefaultProto(com.oracle.truffle.js.runtime.JSRealm)