Class JSProxyObject

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

public final class JSProxyObject extends JSClassObject
  • Constructor Details

  • Method Details

    • getProxyHandler

      public JSDynamicObject getProxyHandler()
    • getProxyTarget

      public Object getProxyTarget()
    • revoke

      public void revoke(boolean isCallable, boolean isConstructor)
    • 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]".
      Specified by:
      getClassName in class JSDynamicObject
    • getBuiltinToStringTag

      public com.oracle.truffle.api.strings.TruffleString getBuiltinToStringTag()
      Description copied from class: JSObject
      Returns builtinTag as per Object.prototype.toString(). By default returns "Object".
      Overrides:
      getBuiltinToStringTag in class JSObject
      Returns:
      built-in toStringTag
    • isExecutable

      public boolean isExecutable(IsCallableNode isCallable)
    • execute

      public Object execute(Object[] args, com.oracle.truffle.api.interop.InteropLibrary self, JSInteropExecuteNode callNode, ExportValueNode exportNode) throws com.oracle.truffle.api.interop.UnsupportedMessageException
      Throws:
      com.oracle.truffle.api.interop.UnsupportedMessageException
    • isInstantiable

      public boolean isInstantiable()
    • instantiate

      public Object instantiate(Object[] args, com.oracle.truffle.api.interop.InteropLibrary self, JSInteropInstantiateNode callNode, ExportValueNode exportNode) throws com.oracle.truffle.api.interop.UnsupportedMessageException
      Throws:
      com.oracle.truffle.api.interop.UnsupportedMessageException
    • hasMetaObject

      public boolean hasMetaObject()
    • getMetaObject

      public Object getMetaObject()
    • isExtensible

      public boolean isExtensible()
      Description copied from class: JSDynamicObject
      [IsExtensible]] ().
      Specified by:
      isExtensible in class JSDynamicObject
    • preventExtensions

      public boolean preventExtensions(boolean doThrow)
      Description copied from class: JSDynamicObject
      [[PreventExtensions]] ().
      Specified by:
      preventExtensions in class JSDynamicObject
    • 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.
      Specified by:
      toDisplayStringImpl in class JSDynamicObject
      Parameters:
      format - formatting parameters
      depth - current nesting depth