Class JSModuleNamespaceObject

All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject

public final class JSModuleNamespaceObject extends JSNonProxyObject
  • Constructor Details

    • JSModuleNamespaceObject

      protected JSModuleNamespaceObject(com.oracle.truffle.api.object.Shape shape, AbstractModuleRecord module, org.graalvm.collections.UnmodifiableEconomicMap<com.oracle.truffle.api.strings.TruffleString, ExportResolution> exports, boolean deferred)
  • Method Details

    • getModule

      public AbstractModuleRecord getModule()
    • getModuleExportsList

      public org.graalvm.collections.UnmodifiableEconomicMap<com.oracle.truffle.api.strings.TruffleString, ExportResolution> getModuleExportsList()
    • create

      public static JSModuleNamespaceObject create(JSRealm realm, JSObjectFactory factory, AbstractModuleRecord module, org.graalvm.collections.UnmodifiableEconomicMap<com.oracle.truffle.api.strings.TruffleString, ExportResolution> exports, boolean deferred)
    • getClassName

      public com.oracle.truffle.api.strings.TruffleString getClassName()
      Description copied from class: JSDynamicObject
      The [[Class]] internal property. For ES5, this is the second part of what Object.prototype.toString.call(myObj) returns, e.g. "[object Array]".
      Overrides:
      getClassName in class JSNonProxyObject
    • setPrototypeOf

      public boolean setPrototypeOf(JSDynamicObject newPrototype)
      Description copied from class: JSDynamicObject
      [[SetPrototypeOf]] (V).
      Overrides:
      setPrototypeOf in class JSClassObject
    • testIntegrityLevel

      public boolean testIntegrityLevel(boolean frozen)
      Description copied from class: JSDynamicObject
      TestIntegrityLevel(O, level).
      Overrides:
      testIntegrityLevel in class JSNonProxyObject
    • setIntegrityLevel

      public boolean setIntegrityLevel(boolean freeze, boolean doThrow)
      Description copied from class: JSDynamicObject
      SetIntegrityLevel(O, level).
      Overrides:
      setIntegrityLevel in class JSNonProxyObject
    • isSymbolLikeNamespaceKey

      public boolean isSymbolLikeNamespaceKey(Object key)
    • isDeferred

      public boolean isDeferred()
    • toDisplayStringImpl

      public com.oracle.truffle.api.strings.TruffleString toDisplayStringImpl(boolean allowSideEffects, ToDisplayStringFormat format, int depth)
      Description copied from class: JSDynamicObject
      A more informative toString variant, mainly used for error messages.
      Overrides:
      toDisplayStringImpl in class JSNonProxyObject
      Parameters:
      format - formatting parameters
      depth - current nesting depth