Enum ValueType
- All Implemented Interfaces:
AnyType, Serializable, Comparable<ValueType>, java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()The operation code in WebAssembly.booleanIf the type is a reference type.booleanisSubTypeOf(AnyType type) Check if this is a sub type of given type.static ValueTypeReturns the enum constant of this type with the specified name.static ValueType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
i32
-
i64
-
f32
-
f64
-
v128
-
bool
-
i8
-
i16
-
u16
-
funcref
-
externref
-
anyref
-
eqref
-
optref
-
ref
-
exnref
-
func
-
struct
-
array
-
empty
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
-
isRefType
-
isSubTypeOf
Check if this is a sub type of given type.- Specified by:
isSubTypeOfin interfaceAnyType- Parameters:
type- type to check- Returns:
- true, if both are identical or this is a sub type of
other. Or ifotheris a parent type of this.
-