EOS 2
1.1.0
Einfache Objektbasierte Sprache
EosVM
src
de
lathanda
eos
vm
commands
Jump.java
gehe zur Dokumentation dieser Datei
1
/*
2
* To change this license header, choose License Headers in Project Properties.
3
* To change this template file, choose Tools | Templates
4
* and open the template in the editor.
5
*/
6
package
de.lathanda.eos.vm.commands;
7
8
import
de.lathanda.eos.vm.Command;
9
import
de.lathanda.eos.vm.Machine;
10
15
public
class
Jump
extends
Command
{
16
int
relativ;
17
18
public
Jump
(
int
relativ) {
19
this.relativ = relativ;
20
}
21
22
@Override
23
public
boolean
execute
(
Machine
m)
throws
Exception {
24
m.jump(relativ);
25
return
false
;
26
}
27
28
@Override
29
public
String
toString
() {
30
return
"Jump{"
+ relativ +
'}'
;
31
}
32
33
}
de.lathanda.eos.vm.Command
Definition:
Command.java:9
de.lathanda.eos.vm.Machine
Definition:
Machine.java:19
de.lathanda.eos.vm.commands.Jump
Definition:
Jump.java:15
de.lathanda.eos.vm.commands.Jump.Jump
Jump(int relativ)
Definition:
Jump.java:18
de.lathanda.eos.vm.commands.Jump.execute
boolean execute(Machine m)
Definition:
Jump.java:23
de.lathanda.eos.vm.commands.Jump.toString
String toString()
Definition:
Jump.java:29
Impressum