Package com.dylibso.chicory.wasm.types
Class FunctionImport
java.lang.Object
com.dylibso.chicory.wasm.types.Import
com.dylibso.chicory.wasm.types.FunctionImport
An imported function.
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionImport(String moduleName, String name, int typeIndex) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(FunctionImport other) booleaninthashCode()int
-
Constructor Details
-
FunctionImport
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 Details
-
typeIndex
public int typeIndex()- Returns:
- the type index corresponding to the imported function's type
-
importType
- Specified by:
importTypein classImport- Returns:
- the kind of imported definition
-
equals
-
equals
-
hashCode
public int hashCode() -
toString
-