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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmitClassEvent(@NotNull ClassNode classNode) Construct a new class emit event. -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel the event.booleanGet 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:CancellableEventGet whether the event has been cancelled.- Specified by:
isCancelledin interfaceCancellableEvent- Returns:
- Whether the event has been cancelled.
-
cancel
public void cancel()Description copied from interface:CancellableEventCancel the event.- Specified by:
cancelin interfaceCancellableEvent
-