public final class JavaImporter extends JSBuiltinObject implements JSConstructorFactory.Default, PrototypeSupplier
usesOrdinaryGetOwnPropertyJSConstructorFactory.Default.WithFunctions, JSConstructorFactory.Default.WithFunctionsAndSpeciesJSConstructorFactory.Default| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME |
| Modifier and Type | Method and Description |
|---|---|
static com.oracle.truffle.api.object.DynamicObject |
create(JSContext context,
com.oracle.truffle.api.object.DynamicObject[] value) |
static JSConstructor |
createConstructor(JSRealm realm) |
com.oracle.truffle.api.object.DynamicObject |
createPrototype(JSRealm realm,
com.oracle.truffle.api.object.DynamicObject ctor) |
String |
getClassName() |
String |
getClassName(com.oracle.truffle.api.object.DynamicObject object)
The [[Class]] internal property.
|
com.oracle.truffle.api.object.DynamicObject |
getIntrinsicDefaultProto(JSRealm realm) |
Object |
getOwnHelper(com.oracle.truffle.api.object.DynamicObject store,
Object thisObj,
Object name)
Like getOwnProperty, but returns
null if value is not present instead of undefined. |
static com.oracle.truffle.api.object.DynamicObject[] |
getPackages(com.oracle.truffle.api.object.DynamicObject importer) |
boolean |
hasOwnProperty(com.oracle.truffle.api.object.DynamicObject thisObj,
Object name) |
static JavaImporter |
instance() |
static boolean |
isJavaImporter(com.oracle.truffle.api.object.DynamicObject obj) |
static boolean |
isJavaImporter(Object obj) |
com.oracle.truffle.api.object.Shape |
makeInitialShape(JSContext context,
com.oracle.truffle.api.object.DynamicObject prototype) |
String |
safeToString(com.oracle.truffle.api.object.DynamicObject object)
A more informative but side-effect-free toString variant, mainly used for exception messages.
|
String |
toString() |
checkProtoCycle, createSymbolSpeciesGetterFunction, defineOwnProperty, delete, delete, deletePropertyDefault, getBuiltinToStringTag, getForeignAccessFactory, getHelper, getHelper, getMethodHelper, getOwnHelper, getOwnProperty, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ownPropertyKeys, ownPropertyKeysList, preventExtensions, putConstructorSpeciesGetter, set, set, setIntegrityLevel, setOwn, setOwn, setPrototypeOf, usesOrdinaryGetOwnPropertydefaultToString, dispatch, formatToString, get, get, getToStringTag, isInstance, isInstance, isInstance, isInstance, testIntegrityLevelclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateConstructorAndPrototype, createConstructorObject, fillConstructorpublic static final String CLASS_NAME
public String getClassName()
getClassName in interface JSConstructorFactory.Defaultpublic String getClassName(com.oracle.truffle.api.object.DynamicObject object)
JSClassgetClassName in class JSClassobject - object to be usedpublic String toString()
toString in class JSBuiltinObjectpublic static com.oracle.truffle.api.object.DynamicObject create(JSContext context, com.oracle.truffle.api.object.DynamicObject[] value)
public static boolean isJavaImporter(Object obj)
public static boolean isJavaImporter(com.oracle.truffle.api.object.DynamicObject obj)
public boolean hasOwnProperty(com.oracle.truffle.api.object.DynamicObject thisObj,
Object name)
hasOwnProperty in class JSBuiltinObjectpublic Object getOwnHelper(com.oracle.truffle.api.object.DynamicObject store, Object thisObj, Object name)
JSBuiltinObjectnull if value is not present instead of undefined.getOwnHelper in class JSBuiltinObjectpublic static com.oracle.truffle.api.object.DynamicObject[] getPackages(com.oracle.truffle.api.object.DynamicObject importer)
public String safeToString(com.oracle.truffle.api.object.DynamicObject object)
JSClasssafeToString in class JSBuiltinObjectpublic com.oracle.truffle.api.object.DynamicObject createPrototype(JSRealm realm, com.oracle.truffle.api.object.DynamicObject ctor)
createPrototype in interface JSConstructorFactory.Defaultpublic com.oracle.truffle.api.object.Shape makeInitialShape(JSContext context, com.oracle.truffle.api.object.DynamicObject prototype)
makeInitialShape in class JSClasspublic static JSConstructor createConstructor(JSRealm realm)
public static JavaImporter instance()
public com.oracle.truffle.api.object.DynamicObject getIntrinsicDefaultProto(JSRealm realm)
getIntrinsicDefaultProto in interface PrototypeSupplier