Class ImmutableInstruction

    • Field Detail

      • opcode

        @Nonnull
        protected final Opcode opcode
    • Constructor Detail

      • ImmutableInstruction

        protected ImmutableInstruction​(@Nonnull
                                       Opcode opcode)
    • Method Detail

      • getOpcode

        @Nonnull
        public Opcode getOpcode()
        Description copied from interface: Instruction
        Gets the opcode of this instruction.
        Specified by:
        getOpcode in interface Instruction
        Returns:
        The Opcode of this instruction.
      • getFormat

        public abstract Format getFormat()
      • getCodeUnits

        public int getCodeUnits()
        Description copied from interface: Instruction
        Gets the size of this instruction.
        Specified by:
        getCodeUnits in interface Instruction
        Returns:
        The size of this instruction, as a count of the number of 16-bit code units that make up this instruction.
      • immutableListOf

        @Nonnull
        public static com.google.common.collect.ImmutableList<ImmutableInstruction> immutableListOf​(java.lang.Iterable<? extends Instruction> list)