Enum Class WebAssemblyType

java.lang.Object
java.lang.Enum<WebAssemblyType>
com.oracle.truffle.js.runtime.builtins.wasm.WebAssemblyType
All Implemented Interfaces:
Serializable, Comparable<WebAssemblyType>, Constable

public enum WebAssemblyType extends Enum<WebAssemblyType>
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.

  • Enum Constant Details

  • Method Details

    • values

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

      public static WebAssemblyType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • lookup

      public static WebAssemblyType lookup(String type)
    • lookupValueType

      public static WebAssemblyType lookupValueType(String valueType)
      Parses one of the values of the Wasm JS API ValueType enum as a WebAssemblyType.
    • lookupElementKind

      public static WebAssemblyType lookupElementKind(String elementKind)
      Parses one of the values of the Wasm JS API ElementKind enum as a WebAssemblyType.
    • getDefaultValue

      public Object getDefaultValue(JSRealm realm)