Enum WasmInstruction.Type
- java.lang.Object
-
- java.lang.Enum<WasmInstruction.Type>
-
- de.inetsoftware.jwebassembly.module.WasmInstruction.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WasmInstruction.Type>
- Enclosing class:
- WasmInstruction
static enum WasmInstruction.Type extends java.lang.Enum<WasmInstruction.Type>
Type of instruction to faster differ as with instanceof.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Type()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WasmInstruction.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WasmInstruction.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Const
public static final WasmInstruction.Type Const
-
Convert
public static final WasmInstruction.Type Convert
-
Local
public static final WasmInstruction.Type Local
-
Global
public static final WasmInstruction.Type Global
-
Table
public static final WasmInstruction.Type Table
-
Memory
public static final WasmInstruction.Type Memory
-
Block
public static final WasmInstruction.Type Block
-
Numeric
public static final WasmInstruction.Type Numeric
-
Nop
public static final WasmInstruction.Type Nop
-
Jump
public static final WasmInstruction.Type Jump
-
Call
public static final WasmInstruction.Type Call
-
CallVirtual
public static final WasmInstruction.Type CallVirtual
-
CallInterface
public static final WasmInstruction.Type CallInterface
-
Array
public static final WasmInstruction.Type Array
-
Struct
public static final WasmInstruction.Type Struct
-
DupThis
public static final WasmInstruction.Type DupThis
-
-
Method Detail
-
values
public static WasmInstruction.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WasmInstruction.Type c : WasmInstruction.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WasmInstruction.Type valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-