Class BytecodeInstruction

  • All Implemented Interfaces:
    de.carne.mcd.instruction.Instruction

    public class BytecodeInstruction
    extends java.lang.Object
    implements de.carne.mcd.instruction.Instruction
    A single bytecode instruction with a variable number of operands.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void decode​(long ip, de.carne.mcd.instruction.InstructionOpcode opcode, de.carne.mcd.io.MCDInputBuffer in, de.carne.mcd.io.MCDOutputBuffer out)  
      void save​(java.io.DataOutput out)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BytecodeInstruction

        public BytecodeInstruction​(java.lang.String mnemonic,
                                   OperandType[] operands)
        Constructs a new BytecodeInstruction instance.
        Parameters:
        mnemonic - the instruction mnemonic to use.
        operands - the instruction operands.
    • Method Detail

      • save

        public void save​(java.io.DataOutput out)
                  throws java.io.IOException
        Specified by:
        save in interface de.carne.mcd.instruction.Instruction
        Throws:
        java.io.IOException
      • decode

        public void decode​(long ip,
                           de.carne.mcd.instruction.InstructionOpcode opcode,
                           de.carne.mcd.io.MCDInputBuffer in,
                           de.carne.mcd.io.MCDOutputBuffer out)
                    throws java.io.IOException
        Specified by:
        decode in interface de.carne.mcd.instruction.Instruction
        Throws:
        java.io.IOException