Package com.dylibso.chicory.wasm.types
Class GlobalImport
java.lang.Object
com.dylibso.chicory.wasm.types.Import
com.dylibso.chicory.wasm.types.GlobalImport
An imported global variable or constant.
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalImport(String moduleName, String name, MutabilityType mutabilityType, ValueType type) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(GlobalImport other) booleaninthashCode()type()
-
Constructor Details
-
GlobalImport
Construct a new instance.- Parameters:
moduleName- the module name (must not benull)name- the imported global name (must not benull)mutabilityType- the mutability type of the global (must not benull)type- the type of the value stored in the global (must not benull)
-
-
Method Details
-
mutabilityType
- Returns:
- the mutability type of the global
-
type
- Returns:
- the type of the value stored in the global
-
importType
- Specified by:
importTypein classImport- Returns:
- the kind of imported definition
-
equals
-
equals
-
hashCode
public int hashCode() -
toString
-