Enum Class WebAssemblyType
- All Implemented Interfaces:
Serializable, Comparable<WebAssemblyType>, Constable
Represents the value types used in WebAssembly.
This enum is an abstract view of WebAssembly value types. It consists of the set of topmost disjoint types. Every other WebAssembly value type is a subtype of one of these types.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultValue(JSRealm realm) static WebAssemblyTypestatic WebAssemblyTypelookupElementKind(String elementKind) Parses one of the values of the Wasm JS APIElementKindenum as aWebAssemblyType.static WebAssemblyTypelookupValueType(String valueType) Parses one of the values of the Wasm JS APIValueTypeenum as aWebAssemblyType.static WebAssemblyTypeReturns the enum constant of this class with the specified name.static WebAssemblyType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
i32
-
i64
-
f32
-
f64
-
v128
-
funcref
-
externref
-
exnref
-
anyref
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
lookup
-
lookupValueType
Parses one of the values of the Wasm JS APIValueTypeenum as aWebAssemblyType. -
lookupElementKind
Parses one of the values of the Wasm JS APIElementKindenum as aWebAssemblyType. -
getDefaultValue
-