Package com.dylibso.chicory.wasm.types
Class ImportSection
- java.lang.Object
-
- com.dylibso.chicory.wasm.types.Section
-
- com.dylibso.chicory.wasm.types.ImportSection
-
public class ImportSection extends Section
-
-
Constructor Summary
Constructors Constructor Description ImportSection()Construct a new, empty section instance.ImportSection(int estimatedSize)Construct a new, empty section instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddImport(Import import_)Add an import definition to this section.intcount(ExternalType type)ImportgetImport(int idx)intimportCount()Stream<Import>stream()
-
-
-
Method Detail
-
importCount
public int importCount()
-
getImport
public Import getImport(int idx)
-
count
public int count(ExternalType type)
-
addImport
public int addImport(Import import_)
Add an import definition to this section.- Parameters:
import_- the import to add to this section (must not benull)- Returns:
- the index of the newly-added import
-
-