Class JSFunctionObject.BoundOrWrapped

All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject
Direct Known Subclasses:
JSFunctionObject.Bound, JSFunctionObject.Wrapped
Enclosing class:
JSFunctionObject

public abstract static class JSFunctionObject.BoundOrWrapped extends JSFunctionObject
Bound or wrapped function exotic object.
  • Constructor Details

    • BoundOrWrapped

      protected BoundOrWrapped(com.oracle.truffle.api.object.Shape shape, JSDynamicObject proto, JSFunctionData functionData, com.oracle.truffle.api.frame.MaterializedFrame enclosingFrame, JSRealm realm, Object classPrototype)
  • Method Details

    • getBoundName

      public final com.oracle.truffle.api.strings.TruffleString getBoundName()
    • setBoundName

      public final void setBoundName(com.oracle.truffle.api.strings.TruffleString targetName, com.oracle.truffle.api.strings.TruffleString prefix)
    • initializeName

      protected abstract void initializeName()
    • getFunctionName

      protected static com.oracle.truffle.api.strings.TruffleString getFunctionName(JSFunctionObject function)
    • getBoundLength

      public final int getBoundLength()
    • setBoundLength

      public final void setBoundLength(int length)