All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class duckMachine.architecture.Instruction

java.lang.Object
   |
   +----duckMachine.architecture.Word
           |
           +----duckMachine.architecture.Instruction

public abstract class Instruction
extends Word
The abstract class of machine instructions.


Constructor Index

 o Instruction(int)

Method Index

 o accept(InsVisitor)
All the methods that manipulate instructions are encapsulated in an instruction visitor.

Constructors

 o Instruction
 protected Instruction(int opcode)

Methods

 o accept
 public abstract void accept(InsVisitor iv) throws MachineE
All the methods that manipulate instructions are encapsulated in an instruction visitor. An instruction accepts a visitor and forwards itself to the appropriate method of the visitor.

Throws: MachineE
If visit of the instruction causes the machine to raise an exception.
See Also:
InsVisitor

All Packages  Class Hierarchy  This Package  Previous  Next  Index