Package ch.hevs.kart

Enum Class KartSequence.Instruction.OpCode

java.lang.Object
java.lang.Enum<KartSequence.Instruction.OpCode>
ch.hevs.kart.KartSequence.Instruction.OpCode
All Implemented Interfaces:
Serializable, Comparable<KartSequence.Instruction.OpCode>, Constable
Enclosing class:
KartSequence.Instruction

public static enum KartSequence.Instruction.OpCode extends Enum<KartSequence.Instruction.OpCode>

Enumerates the opcodes actually supported by the Kart's sequencer vm.

  • Enum Constant Details

  • Method Details

    • values

      public static KartSequence.Instruction.OpCode[] 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 KartSequence.Instruction.OpCode 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
    • toByte

      public byte toByte()

      Converts the opcode to a byte that can be interpreted by the kart VM.

      Returns:
      Raw opcode.