- All Implemented Interfaces:
Serializable,Comparable<ValueType>
Deprecated.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueTypeforId(int id) Deprecated.intid()Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.static booleanisValid(int typeId) Deprecated.static ValueTyperefTypeForId(int id) Deprecated.intsize()Deprecated.static intDeprecated.Deprecated.static ValueTypeDeprecated.Returns the enum constant of this type with the specified name.static ValueType[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Deprecated. -
F64
Deprecated. -
F32
Deprecated. -
I64
Deprecated. -
I32
Deprecated. -
V128
Deprecated. -
FuncRef
Deprecated. -
ExnRef
Deprecated. -
ExternRef
Deprecated.
-
-
Method Details
-
values
Deprecated.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
Deprecated.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
-
id
public int id()Deprecated.- Returns:
- the numerical identifier for this type
-
size
public int size()Deprecated.- Returns:
- the size of this type in memory
- Throws:
IllegalStateException- if the type cannot be stored in memory
-
isNumeric
public boolean isNumeric()Deprecated.- Returns:
trueif the type is a numeric type, orfalseotherwise
-
isInteger
public boolean isInteger()Deprecated.- Returns:
trueif the type is an integer type, orfalseotherwise
-
isFloatingPoint
public boolean isFloatingPoint()Deprecated.- Returns:
trueif the type is a floating-point type, orfalseotherwise
-
isReference
public boolean isReference()Deprecated.- Returns:
trueif the type is a reference type, orfalseotherwise
-
isValid
public static boolean isValid(int typeId) Deprecated.- Returns:
trueif the given type ID is a valid value type ID, orfalseif it is not
-
forId
Deprecated.- Returns:
- the
ValueTypefor the given ID value - Throws:
IllegalArgumentException- if the ID value does not correspond to a valid value type
-
toValType
Deprecated. -
refTypeForId
Deprecated.- Returns:
- the reference-typed
ValueTypefor the given ID value - Throws:
IllegalArgumentException- if the ID value does not correspond to a valid reference type
-
sizeOf
Deprecated.
-
ValType