Class EmitClassEvent
java.lang.Object
io.github.eutro.wasm2j.api.events.EmitClassEvent
- All Implemented Interfaces:
CancellableEvent
,ModuleCompileEvent
Fired when a class should be emitted.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEmitClassEvent
(@NotNull ClassNode classNode) Construct a new class emit event. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancel the event.boolean
Get whether the event has been cancelled.
-
Field Details
-
classNode
The class to be emitted.
-
-
Constructor Details
-
EmitClassEvent
Construct a new class emit event.- Parameters:
classNode
- The class to emit.
-
-
Method Details
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableEvent
Get whether the event has been cancelled.- Specified by:
isCancelled
in interfaceCancellableEvent
- Returns:
- Whether the event has been cancelled.
-
cancel
public void cancel()Description copied from interface:CancellableEvent
Cancel the event.- Specified by:
cancel
in interfaceCancellableEvent
-