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.
-
Instruction(int)
-
-
accept(InsVisitor)
- All the methods that manipulate instructions are encapsulated in
an instruction visitor.
Instruction
protected Instruction(int opcode)
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