Class JSMetaType

java.lang.Object
com.oracle.truffle.js.runtime.interop.JSMetaType
All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject

public final class JSMetaType extends Object implements com.oracle.truffle.api.interop.TruffleObject
General meta objects for JS values and foreign objects through JavaScriptLanguageView. Note that JS objects usually return their constructor function object as the meta object.
  • Field Details

  • Constructor Details

  • Method Details

    • isInstance

      public boolean isInstance(Object instance, com.oracle.truffle.api.interop.InteropLibrary interop)
      Checks whether instance is of this meta type. If used on the fast path the JSMetaType is required to be a PE-constant.
    • getTypeName

      public String getTypeName()
    • toString

      public String toString()
      Overrides:
      toString in class Object