Class ImportsSection
- java.lang.Object
-
- de.mirkosertic.bytecoder.core.backend.wasm.ast.ModuleSection
-
- de.mirkosertic.bytecoder.core.backend.wasm.ast.ImportsSection
-
public class ImportsSection extends ModuleSection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ImportsSection.ImportEntry
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ImportsSection.ImportEntry>
imports
-
Constructor Summary
Constructors Constructor Description ImportsSection(Module aModule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFunctionsToIndex(FunctionIndex functionIndex)
Function
importFunction(ImportReference importReference, java.lang.String label, WasmType result)
Function
importFunction(ImportReference importReference, java.lang.String label, java.util.List<Param> parameter)
Function
importFunction(ImportReference importReference, java.lang.String label, java.util.List<Param> parameter, WasmType result)
void
writeTo(BinaryWriter binaryWriter, java.util.List<Memory> memoryIndex)
void
writeTo(TextWriter textWriter)
-
Methods inherited from class de.mirkosertic.bytecoder.core.backend.wasm.ast.ModuleSection
getModule
-
-
-
-
Field Detail
-
imports
private final java.util.List<ImportsSection.ImportEntry> imports
-
-
Constructor Detail
-
ImportsSection
ImportsSection(Module aModule)
-
-
Method Detail
-
importFunction
public Function importFunction(ImportReference importReference, java.lang.String label, java.util.List<Param> parameter, WasmType result)
-
importFunction
public Function importFunction(ImportReference importReference, java.lang.String label, java.util.List<Param> parameter)
-
importFunction
public Function importFunction(ImportReference importReference, java.lang.String label, WasmType result)
-
writeTo
public void writeTo(TextWriter textWriter) throws java.io.IOException
- Throws:
java.io.IOException
-
addFunctionsToIndex
public void addFunctionsToIndex(FunctionIndex functionIndex)
-
writeTo
public void writeTo(BinaryWriter binaryWriter, java.util.List<Memory> memoryIndex) throws java.io.IOException
- Throws:
java.io.IOException
-
-