public class ModuleGenerator
extends java.lang.Object
Constructor and Description |
---|
ModuleGenerator(ModuleWriter writer,
WasmTarget target,
java.util.List<java.net.URL> libraries)
Create a new generator.
|
Modifier and Type | Method and Description |
---|---|
void |
finish()
Finish the code generation.
|
void |
prepare(ClassFile classFile)
Prepare the content of the class.
|
void |
prepareFinish()
Finish the prepare after all classes/methods are prepare.
|
public ModuleGenerator(@Nonnull ModuleWriter writer, WasmTarget target, @Nonnull java.util.List<java.net.URL> libraries)
writer
- the target writertarget
- the target for the module datalibraries
- librariespublic void prepare(ClassFile classFile) throws java.io.IOException
classFile
- the class fileWasmException
- if some Java code can't convertedjava.io.IOException
- if any I/O error occurpublic void prepareFinish() throws java.io.IOException
java.io.IOException
- if any I/O error occurpublic void finish() throws java.io.IOException
java.io.IOException
- if any I/O error occur