Package com.dylibso.chicory.wasm.types
Class MemoryImport
- java.lang.Object
-
- com.dylibso.chicory.wasm.types.Import
-
- com.dylibso.chicory.wasm.types.MemoryImport
-
public final class MemoryImport extends Import
An imported memory.
-
-
Constructor Summary
Constructors Constructor Description MemoryImport(String moduleName, String name, MemoryLimits limits)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Import other)booleanequals(MemoryImport other)inthashCode()ExternalTypeimportType()MemoryLimitslimits()StringBuildertoString(StringBuilder b)-
Methods inherited from class com.dylibso.chicory.wasm.types.Import
equals, moduleName, name, toString
-
-
-
-
Constructor Detail
-
MemoryImport
public MemoryImport(String moduleName, String name, MemoryLimits limits)
Construct a new instance.- Parameters:
moduleName- the module name (must not benull)name- the imported memory name (must not benull)limits- the memory size limits (must not benull)
-
-
Method Detail
-
limits
public MemoryLimits limits()
- Returns:
- the memory size limits, in pages
-
importType
public ExternalType importType()
- Specified by:
importTypein classImport- Returns:
- the kind of imported definition
-
equals
public boolean equals(MemoryImport other)
-
toString
public StringBuilder toString(StringBuilder b)
-
-