Class KnownBuiltInFunction

All Implemented Interfaces:
Serializable, Callable, ConstProperties<Scriptable>, Constructable, DebuggableObject, Function, PropHolder<Scriptable>, Scriptable, SymbolScriptable

public class KnownBuiltInFunction extends LambdaFunction
This class implements a lambda function which is known to the runtime system and which may be treated specially by the interpreter or runtime.
See Also:
  • Constructor Details

    • KnownBuiltInFunction

      public KnownBuiltInFunction(Object tag, VarScope scope, String name, int length, Object prototype, SerializableCallable target)
      Create a new function. The new object will have the Function prototype and no parent. The caller is responsible for binding this object to the appropriate scope.
      Parameters:
      tag - an object used by the system to identify this function
      scope - scope of the calling context
      name - name of the function
      length - the arity of the function
      target - an object that implements the function in Java. Since Callable is a single-function interface this will typically be implemented as a lambda.
  • Method Details

    • getTag

      public Object getTag()