Module de.carne.mcd

Interface InstructionFactory


  • public interface InstructionFactory
    Interface for instruction creation.
    • Method Detail

      • loadInstruction

        Instruction loadInstruction​(java.io.DataInput in)
                             throws java.io.IOException
        Loads and setups an Instruction instance from a data stream previously written via Instruction.save(java.io.DataOutput).
        Parameters:
        in - the DataInputStream to load from.
        Returns:
        the loaded Instruction instance.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • getDefaultInstruction

        Instruction getDefaultInstruction()
        Creates a default Instruction instance for handling opcodes not assigned to any specific Instruction instance.
        Returns:
        the created default Instruction instance.