Interface Method<Holder>

Type Parameters

  • Holder extends Members<Holder> = {}

Hierarchy

  • Parameters

    • Rest ...params: any[]

    Returns any

Properties

argumentTypes: Type[]

Method argument types.

canInvokeWith: ((...args: any[]) => boolean)

Type declaration

    • (...args: any[]): boolean
    • Queries whether the method may be invoked with a given argument list.

      Parameters

      • Rest ...args: any[]

      Returns boolean

clone: ((options: NativeFunctionOptions) => Method<Holder>)

Type declaration

    • (options: NativeFunctionOptions): Method<Holder>
    • Makes a new method wrapper with custom NativeFunction options.

      Useful for e.g. setting traps: "all" to perform execution tracing in conjunction with Stalker.

      Parameters

      Returns Method<Holder>

Pointer to the VM's underlying method object.

holder: Wrapper<Holder>

Class that this method belongs to.

implementation: null | MethodImplementation<Holder>

Implementation. Assign a new implementation to this property to replace the original implementation. Assign null at a future point to revert back to the original implementation.

methodName: string

Name of this method.

returnType: Type

Method return type.

What kind of method this is, i.e. constructor vs static vs instance.

Generated using TypeDoc