Package com.dylibso.chicory.wasm.types
Class GlobalImport
- java.lang.Object
-
- com.dylibso.chicory.wasm.types.Import
-
- com.dylibso.chicory.wasm.types.GlobalImport
-
public final class GlobalImport extends Import
An imported global variable or constant.
-
-
Constructor Summary
Constructors Constructor Description GlobalImport(String moduleName, String name, MutabilityType mutabilityType, ValueType type)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(GlobalImport other)booleanequals(Import other)inthashCode()ExternalTypeimportType()MutabilityTypemutabilityType()StringBuildertoString(StringBuilder b)ValueTypetype()-
Methods inherited from class com.dylibso.chicory.wasm.types.Import
equals, moduleName, name, toString
-
-
-
-
Constructor Detail
-
GlobalImport
public GlobalImport(String moduleName, String name, MutabilityType mutabilityType, ValueType type)
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 Detail
-
mutabilityType
public MutabilityType mutabilityType()
- Returns:
- the mutability type of the global
-
type
public ValueType type()
- Returns:
- the type of the value stored in the global
-
importType
public ExternalType importType()
- Specified by:
importTypein classImport- Returns:
- the kind of imported definition
-
equals
public boolean equals(GlobalImport other)
-
toString
public StringBuilder toString(StringBuilder b)
-
-