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()StringBuildertoString(StringBuilder b)inttypeIndex()-
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()
- Returns:
- the type index corresponding to the imported function's type
-
importType
public ExternalType importType()
- Specified by:
importTypein classImport- Returns:
- the kind of imported definition
-
equals
public boolean equals(FunctionImport other)
-
toString
public StringBuilder toString(StringBuilder b)
-
-