java.lang.Object
java.lang.Enum<ValueType>
com.dylibso.chicory.wasm.types.ValueType
All Implemented Interfaces:
Serializable, Comparable<ValueType>

@Deprecated(since="1.3.0") public enum ValueType extends Enum<ValueType>
Deprecated.
  • Enum Constant Details

    • UNKNOWN

      public static final ValueType UNKNOWN
      Deprecated.
    • F64

      public static final ValueType F64
      Deprecated.
    • F32

      public static final ValueType F32
      Deprecated.
    • I64

      public static final ValueType I64
      Deprecated.
    • I32

      public static final ValueType I32
      Deprecated.
    • V128

      public static final ValueType V128
      Deprecated.
    • FuncRef

      public static final ValueType FuncRef
      Deprecated.
    • ExnRef

      public static final ValueType ExnRef
      Deprecated.
    • ExternRef

      public static final ValueType ExternRef
      Deprecated.
  • Method Details

    • values

      public static ValueType[] 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

      public static ValueType valueOf(String name)
      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 name
      NullPointerException - 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:
      true if the type is a numeric type, or false otherwise
    • isInteger

      public boolean isInteger()
      Deprecated.
      Returns:
      true if the type is an integer type, or false otherwise
    • isFloatingPoint

      public boolean isFloatingPoint()
      Deprecated.
      Returns:
      true if the type is a floating-point type, or false otherwise
    • isReference

      public boolean isReference()
      Deprecated.
      Returns:
      true if the type is a reference type, or false otherwise
    • isValid

      public static boolean isValid(int typeId)
      Deprecated.
      Returns:
      true if the given type ID is a valid value type ID, or false if it is not
    • forId

      public static ValueType forId(int id)
      Deprecated.
      Returns:
      the ValueType for the given ID value
      Throws:
      IllegalArgumentException - if the ID value does not correspond to a valid value type
    • toValType

      public ValType toValType()
      Deprecated.
    • refTypeForId

      public static ValueType refTypeForId(int id)
      Deprecated.
      Returns:
      the reference-typed ValueType for the given ID value
      Throws:
      IllegalArgumentException - if the ID value does not correspond to a valid reference type
    • sizeOf

      public static int sizeOf(List<ValueType> args)
      Deprecated.