Class Module
- java.lang.Object
-
- de.mirkosertic.bytecoder.core.backend.wasm.ast.Module
-
public class Module extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ElementSection
elements
private ExportsSection
exports
private FunctionsSection
functions
private GlobalsSection
globals
private ImportsSection
imports
private java.lang.String
label
private MemorySection
mems
private NameSection
names
private SourceMapSection
sourceMapSection
private TablesSection
tables
private TagSection
tags
private TypesSection
types
-
Constructor Summary
Constructors Constructor Description Module(java.lang.String label, java.lang.String sourcemapFileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionIndex
functionIndex()
ExportsSection
getExports()
FunctionsSection
getFunctions()
GlobalsSection
getGlobals()
ImportsSection
getImports()
java.lang.String
getLabel()
MemorySection
getMems()
TablesSection
getTables()
TagSection
getTags()
TypesSection
getTypes()
GlobalsIndex
globalsIndex()
TagIndex
tagIndex()
void
writeTo(BinaryWriter writer, boolean enableDebug)
void
writeTo(TextWriter writer, boolean enableDebug)
-
-
-
Field Detail
-
label
private final java.lang.String label
-
types
private final TypesSection types
-
functions
private final FunctionsSection functions
-
tables
private final TablesSection tables
-
mems
private final MemorySection mems
-
globals
private final GlobalsSection globals
-
elements
private final ElementSection elements
-
imports
private final ImportsSection imports
-
exports
private final ExportsSection exports
-
names
private final NameSection names
-
tags
private final TagSection tags
-
sourceMapSection
private final SourceMapSection sourceMapSection
-
-
Method Detail
-
writeTo
public void writeTo(TextWriter writer, boolean enableDebug) throws java.io.IOException
- Throws:
java.io.IOException
-
getTypes
public TypesSection getTypes()
-
globalsIndex
public GlobalsIndex globalsIndex()
-
tagIndex
public TagIndex tagIndex()
-
functionIndex
public FunctionIndex functionIndex()
-
writeTo
public void writeTo(BinaryWriter writer, boolean enableDebug) throws java.io.IOException
- Throws:
java.io.IOException
-
getLabel
public java.lang.String getLabel()
-
getMems
public MemorySection getMems()
-
getFunctions
public FunctionsSection getFunctions()
-
getImports
public ImportsSection getImports()
-
getGlobals
public GlobalsSection getGlobals()
-
getExports
public ExportsSection getExports()
-
getTables
public TablesSection getTables()
-
getTags
public TagSection getTags()
-
-