Enum Class WebAssemblyValueType

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

public enum WebAssemblyValueType extends Enum<WebAssemblyValueType>
Represents the value types used in WebAssembly. See org.graalvm.wasm.api.ValueType.
  • Enum Constant Details

  • Method Details

    • values

      public static WebAssemblyValueType[] 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 WebAssemblyValueType 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
    • isReference

      public boolean isReference()
    • getDefaultValue

      public Object getDefaultValue(JSRealm realm)
    • lookupType

      public static WebAssemblyValueType lookupType(String type)