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 ElementSectionelementsprivate ExportsSectionexportsprivate FunctionsSectionfunctionsprivate GlobalsSectionglobalsprivate ImportsSectionimportsprivate java.lang.Stringlabelprivate MemorySectionmemsprivate NameSectionnamesprivate SourceMapSectionsourceMapSectionprivate TablesSectiontablesprivate TagSectiontagsprivate TypesSectiontypes
-
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 FunctionIndexfunctionIndex()ExportsSectiongetExports()FunctionsSectiongetFunctions()GlobalsSectiongetGlobals()ImportsSectiongetImports()java.lang.StringgetLabel()MemorySectiongetMems()TablesSectiongetTables()TagSectiongetTags()TypesSectiongetTypes()GlobalsIndexglobalsIndex()TagIndextagIndex()voidwriteTo(BinaryWriter writer, boolean enableDebug)voidwriteTo(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()
-
-