Package com.dylibso.chicory.wasm.types
Class FunctionImport
- java.lang.Object
-
- com.dylibso.chicory.wasm.types.Import
-
- com.dylibso.chicory.wasm.types.FunctionImport
-
public final class FunctionImport extends Import
An imported function.
-
-
Constructor Summary
Constructors Constructor Description FunctionImport(String moduleName, String name, int typeIndex)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(FunctionImport other)booleanequals(Import other)inthashCode()ExternalTypeimportType(){@return the kind of imported definition}StringBuildertoString(StringBuilder b)inttypeIndex(){@return the type index corresponding to the imported function's type}-
Methods inherited from class com.dylibso.chicory.wasm.types.Import
equals, moduleName, name, toString
-
-
-
-
Constructor Detail
-
FunctionImport
public FunctionImport(String moduleName, String name, int typeIndex)
Construct a new instance.- Parameters:
moduleName- the module name (must not benull)name- the imported function name (must not benull)typeIndex- the type index of the function (should correspond to a valid index in the type section)
-
-
Method Detail
-
typeIndex
public int typeIndex()
{@return the type index corresponding to the imported function's type}
-
importType
public ExternalType importType()
Description copied from class:Import{@return the kind of imported definition}- Specified by:
importTypein classImport
-
equals
public boolean equals(FunctionImport other)
-
toString
public StringBuilder toString(StringBuilder b)
-
-