Class DisassemblyImportSectionListener
java.lang.Object
org.teavm.backend.wasm.disasm.BaseDisassemblyListener
org.teavm.backend.wasm.disasm.DisassemblyImportSectionListener
- All Implemented Interfaces:
ImportSectionListener
public class DisassemblyImportSectionListener
extends BaseDisassemblyListener
implements ImportSectionListener
-
Field Summary
Fields inherited from class BaseDisassemblyListener
nameProvider, writer -
Constructor Summary
ConstructorsConstructorDescriptionDisassemblyImportSectionListener(DisassemblyWriter writer, NameProvider nameProvider, WasmHollowFunctionType[] functionTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoidfunction(int typeIndex) intvoidglobal(WasmHollowType type, boolean mutable) intvoidmemory(int minSize, int maxSize) voidstartEntry(String module, String name) Methods inherited from class BaseDisassemblyListener
writeBlockType, writeFieldRef, writeFunctionRef, writeGlobalRef, writeLocalRef, writeType, writeType, writeTypeRefMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ImportSectionListener
endEntry
-
Constructor Details
-
DisassemblyImportSectionListener
public DisassemblyImportSectionListener(DisassemblyWriter writer, NameProvider nameProvider, WasmHollowFunctionType[] functionTypes)
-
-
Method Details
-
functionCount
public int functionCount() -
globalCount
public int globalCount() -
startEntry
- Specified by:
startEntryin interfaceImportSectionListener
-
function
public void function(int typeIndex) - Specified by:
functionin interfaceImportSectionListener
-
global
- Specified by:
globalin interfaceImportSectionListener
-
memory
public void memory(int minSize, int maxSize) - Specified by:
memoryin interfaceImportSectionListener
-