All Packages Class Hierarchy This Package Previous Next Index
Class duckMachine.operatingSystem.ExecTraceIns
java.lang.Object
|
+----duckMachine.operatingSystem.ExecIns
|
+----duckMachine.operatingSystem.ExecTraceIns
- public class ExecTraceIns
- extends ExecIns
A visitor that prints every instruction it visits and then executes
it by calling the appropriate method in the superclass. The execution
is inherited from the ExecIns visitor. The printing occurs on the
machine's output port which is not necessarily the same as the
shell's output port.
-
ExecTraceIns(MachineI)
-
-
visitAddIns(AddIns)
-
-
visitClearIns(ClearIns)
-
-
visitCompIns(CompIns)
-
-
visitDecIns(DecIns)
-
-
visitHaltIns(HaltIns)
-
-
visitIncIns(IncIns)
-
-
visitInIns(InIns)
-
-
visitJeqIns(JeqIns)
-
-
visitJgtIns(JgtIns)
-
-
visitJltIns(JltIns)
-
-
visitJneqIns(JneqIns)
-
-
visitJumpIns(JumpIns)
-
-
visitLoadIns(LoadIns)
-
-
visitOutIns(OutIns)
-
-
visitStoreIns(StoreIns)
-
-
visitSubIns(SubIns)
-
ExecTraceIns
public ExecTraceIns(MachineI m)
visitHaltIns
public void visitHaltIns(HaltIns i) throws HaltE
- Throws: HaltE
- Indicates that the visitor reached a HALT instruction.
- Overrides:
- visitHaltIns in class ExecIns
visitAddIns
public void visitAddIns(AddIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitAddIns in class ExecIns
visitClearIns
public void visitClearIns(ClearIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitClearIns in class ExecIns
visitCompIns
public void visitCompIns(CompIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitCompIns in class ExecIns
visitDecIns
public void visitDecIns(DecIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitDecIns in class ExecIns
visitInIns
public void visitInIns(InIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitInIns in class ExecIns
visitIncIns
public void visitIncIns(IncIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitIncIns in class ExecIns
visitJeqIns
public void visitJeqIns(JeqIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitJeqIns in class ExecIns
visitJgtIns
public void visitJgtIns(JgtIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitJgtIns in class ExecIns
visitJltIns
public void visitJltIns(JltIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitJltIns in class ExecIns
visitJneqIns
public void visitJneqIns(JneqIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitJneqIns in class ExecIns
visitJumpIns
public void visitJumpIns(JumpIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitJumpIns in class ExecIns
visitLoadIns
public void visitLoadIns(LoadIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitLoadIns in class ExecIns
visitOutIns
public void visitOutIns(OutIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitOutIns in class ExecIns
visitStoreIns
public void visitStoreIns(StoreIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitStoreIns in class ExecIns
visitSubIns
public void visitSubIns(SubIns i) throws MachineE
- Throws: MachineE
- If an error occurs during visit of the instruction.
- Overrides:
- visitSubIns in class ExecIns
All Packages Class Hierarchy This Package Previous Next Index