Class ModuleGenerator
java.lang.Object
de.inetsoftware.jwebassembly.module.ModuleGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionModuleGenerator(ModuleWriter writer, WasmTarget target, List<URL> libraries) Create a new generator. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Finish the code generation.voidPrepare the content of the class.voidFinish the prepare after all classes/methods are prepare.
-
Constructor Details
-
ModuleGenerator
public ModuleGenerator(@Nonnull ModuleWriter writer, WasmTarget target, @Nonnull List<URL> libraries) Create a new generator.- Parameters:
writer- the target writertarget- the target for the module datalibraries- libraries
-
-
Method Details
-
prepare
Prepare the content of the class.- Parameters:
classFile- the class file- Throws:
WasmException- if some Java code can't convertedIOException- if any I/O error occur
-
prepareFinish
Finish the prepare after all classes/methods are prepare. This must be call before we can start with write the first method.- Throws:
IOException- if any I/O error occur
-
finish
Finish the code generation.- Throws:
IOException- if any I/O error occur
-