|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Instruction
Interface of all the instructions of the virtual machine.
Several classes that implement this interface also define a static data member called singleton, which is an instance of the class itself. These classes are "Singleton"s in the sense that all the objects of these classes are the same and are "Immutable". Hence, there is no point in constructing many copies of the same object. The code generator must refer to this singleton object instead of creating new instances of the class.
| Method Summary | |
|---|---|
void |
execute(Computation computation)
This method executes whatever is intended by the Instruction. |
java.lang.String |
printAsTxtLoadable()
|
| Method Detail |
|---|
void execute(Computation computation)
computation - The instruction is executed
in the context of this Computation.java.lang.String printAsTxtLoadable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||