HookType

A HookType describes an abstract missing behavior in the virtual machine, where an actual hook will have to be constructed to hold an A_Function within each separate AvailRuntime.

Parameters

hookName

The name to attach to the A_Functions that are plugged into hooks of this type.

functionType

The signature of functions that may be plugged into hook of this type.

primitive

The Primitive around which to synthesize a default A_Function for hooks of this type. If this is null, a function that invokes P_EmergencyExit will be synthesized instead.

functionSupplier

A supplier of a default A_Function to use for this hook type.

Entries

Link copied to clipboard

The HookType for a hook that holds the stringification function.

Link copied to clipboard

The HookType for a hook that holds the function to invoke whenever an unassigned variable is read.

Link copied to clipboard

The HookType for a hook that holds the function to invoke whenever a returned value disagrees with the expected type.

Link copied to clipboard

The HookType for a hook that holds the function to invoke whenever an A_Method send fails for a definitional reason.

Link copied to clipboard

The HookType for a hook that holds the A_Function to invoke whenever an A_Variable with write reactors is written to when write tracing is not enabled.

Link copied to clipboard

The HookType for a hook that holds the A_Function to invoke when an exception is caught in a Pojo invocation of a Java method or CallbackSystem.Callback.

Link copied to clipboard

The HookType for a hook that holds the A_Function to invoke at the outermost stack frame to run a fiber. This function is passed a function to execute and the arguments to supply to it. The result returned by the passed function is returned from this frame.

Link copied to clipboard

The HookType for a hook that holds the A_Function to invoke at the outermost stack frame to run a fiber, when the fiber would be captured by a debugger. This function is passed a function to execute and the arguments to supply to it. The result returned by the passed function is returned from this frame.

Link copied to clipboard

The HookType for a hook that holds the A_Function to invoke when a method or macro send is ready to be styled (a top-level statement was parsed unambiguously, and this phrase's children have had their chance to apply styling), but the most specific method/macro definition being invoked does not specify its own styler.

Properties

Link copied to clipboard

A supplier of a default A_Function to use for this hook type.

Link copied to clipboard

The A_Function that hooks of this type use.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.