Class BaseFunction

All Implemented Interfaces:
Serializable, Callable, ConstProperties, Constructable, DebuggableObject, Function, IdFunctionCall, Scriptable, SymbolScriptable
Direct Known Subclasses:
Arguments.ThrowTypeError, ArrowFunction, BoundFunction, FunctionObject, IdFunctionObject, LambdaFunction, NativeFunction, NativeJavaConstructor, NativeJavaMethod, NativeRegExpCtor, NativeScript, Require

public class BaseFunction extends IdScriptableObject implements Function
The base class for Function objects. That is one of two purposes. It is also the prototype for every "function" defined except those that are used as GeneratorFunctions via the ES6 "function *" syntax.

See ECMA 15.3.

See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • FUNCTION_TAG

      private static final Object FUNCTION_TAG
    • FUNCTION_CLASS

      private static final String FUNCTION_CLASS
      See Also:
    • GENERATOR_FUNCTION_CLASS

      static final String GENERATOR_FUNCTION_CLASS
      See Also:
    • Id_length

      protected static final int Id_length
      See Also:
    • Id_arity

      protected static final int Id_arity
      See Also:
    • Id_name

      protected static final int Id_name
      See Also:
    • Id_prototype

      protected static final int Id_prototype
      See Also:
    • Id_arguments

      protected static final int Id_arguments
      See Also:
    • MAX_INSTANCE_ID

      protected static final int MAX_INSTANCE_ID
      See Also:
    • Id_constructor

      private static final int Id_constructor
      See Also:
    • Id_toString

      private static final int Id_toString
      See Also:
    • Id_toSource

      private static final int Id_toSource
      See Also:
    • Id_apply

      private static final int Id_apply
      See Also:
    • Id_call

      private static final int Id_call
      See Also:
    • Id_bind

      private static final int Id_bind
      See Also:
    • MAX_PROTOTYPE_ID

      private static final int MAX_PROTOTYPE_ID
      See Also:
    • prototypeProperty

      private Object prototypeProperty
    • argumentsObj

      private Object argumentsObj
    • nameValue

      private String nameValue
    • isGeneratorFunction

      private boolean isGeneratorFunction
    • prototypePropertyAttributes

      private int prototypePropertyAttributes
    • argumentsAttributes

      private int argumentsAttributes
    • arityPropertyAttributes

      private int arityPropertyAttributes
    • namePropertyAttributes

      private int namePropertyAttributes
    • lengthPropertyAttributes

      private int lengthPropertyAttributes
  • Constructor Details

    • BaseFunction

      public BaseFunction()
    • BaseFunction

      public BaseFunction(boolean isGenerator)
    • BaseFunction

      public BaseFunction(Scriptable scope, Scriptable prototype)
  • Method Details