Class JavaImporter
java.lang.Object
com.oracle.truffle.js.runtime.builtins.JSClass
com.oracle.truffle.js.runtime.builtins.JSNonProxy
com.oracle.truffle.js.runtime.java.JavaImporter
- All Implemented Interfaces:
JSConstructorFactory,JSConstructorFactory.Default,PrototypeSupplier
public final class JavaImporter
extends JSNonProxy
implements JSConstructorFactory.Default, PrototypeSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.oracle.truffle.js.runtime.builtins.JSConstructorFactory
JSConstructorFactory.Default, JSConstructorFactory.WithFunctions, JSConstructorFactory.WithFunctionsAndSpeciesNested classes/interfaces inherited from interface com.oracle.truffle.js.runtime.builtins.JSConstructorFactory.Default
JSConstructorFactory.Default.WithSpecies -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.oracle.truffle.api.strings.TruffleStringFields inherited from class com.oracle.truffle.js.runtime.builtins.JSNonProxy
GET_SYMBOL_SPECIES_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaImporterObjectstatic JSConstructorcreateConstructor(JSRealm realm) createPrototype(JSRealm realm, JSFunctionObject ctor) com.oracle.truffle.api.strings.TruffleStringstatic Object[]getImports(JSDynamicObject importer) getIntrinsicDefaultProto(JSRealm realm) Allows invokevirtual of this method instead of invokeinterface.getOwnHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) Like getOwnProperty, but returnsnullif value is not present instead of undefined.booleanhasOwnProperty(JSDynamicObject thisObj, Object name) static JavaImporterinstance()static booleanisJavaImporter(Object obj) com.oracle.truffle.api.object.ShapemakeInitialShape(JSContext context, JSDynamicObject prototype) Methods inherited from class com.oracle.truffle.js.runtime.builtins.JSNonProxy
checkProtoCycle, createSymbolSpeciesGetterFunction, defineOwnProperty, delete, delete, deletePropertyDefault, getHelper, getHelper, getMethodHelper, getOwnHelper, getOwnProperty, getOwnPropertyKeys, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryIsExtensible, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinaryPreventExtensions, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, putConstructorSpeciesGetter, set, set, setIntegrityLevelFast, setPropertySlow, setPrototypeOf, testIntegrityLevelFast, usesOrdinaryGetOwnProperty, usesOrdinaryIsExtensibleMethods inherited from class com.oracle.truffle.js.runtime.builtins.JSClass
filterOwnPropertyKeys, get, get, isInstance, isInstance, isInstance, isInstance, ownPropertyKeys, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.truffle.js.runtime.builtins.JSConstructorFactory
createConstructorObject, fillConstructorMethods inherited from interface com.oracle.truffle.js.runtime.builtins.JSConstructorFactory.Default
createConstructorAndPrototype
-
Field Details
-
CLASS_NAME
public static final com.oracle.truffle.api.strings.TruffleString CLASS_NAME
-
-
Method Details
-
getClassName
public com.oracle.truffle.api.strings.TruffleString getClassName()- Specified by:
getClassNamein interfaceJSConstructorFactory
-
create
-
isJavaImporter
-
hasOwnProperty
- Overrides:
hasOwnPropertyin classJSNonProxy
-
getOwnHelper
public Object getOwnHelper(JSDynamicObject store, Object thisObj, Object key, com.oracle.truffle.api.nodes.Node encapsulatingNode) Description copied from class:JSNonProxyLike getOwnProperty, but returnsnullif value is not present instead of undefined.- Overrides:
getOwnHelperin classJSNonProxy
-
getImports
-
createPrototype
- Specified by:
createPrototypein interfaceJSConstructorFactory
-
makeInitialShape
public com.oracle.truffle.api.object.Shape makeInitialShape(JSContext context, JSDynamicObject prototype) - Overrides:
makeInitialShapein classJSClass
-
createConstructor
-
instance
-
getIntrinsicDefaultProto
Description copied from class:JSClassAllows invokevirtual of this method instead of invokeinterface. Classes overriding this method should implementPrototypeSupplier.- Specified by:
getIntrinsicDefaultProtoin interfacePrototypeSupplier- Overrides:
getIntrinsicDefaultProtoin classJSClass- See Also:
-