EOS 2
1.1.0
Einfache Objektbasierte Sprache
EosVM
src
de
lathanda
eos
vm
commands
Not.java
gehe zur Dokumentation dieser Datei
1
package
de.lathanda.eos.vm.commands;
2
3
import
de.lathanda.eos.vm.Command;
4
import
de.lathanda.eos.vm.Machine;
5
12
public
class
Not
extends
Command
{
13
14
public
Not
() {
15
}
16
17
@Override
18
public
boolean
execute
(
Machine
m)
throws
Exception {
19
Boolean a = (Boolean) m.pop();
20
m.push(!a);
21
return
true
;
22
}
23
24
@Override
25
public
String
toString
() {
26
return
"Not{"
+
'}'
;
27
}
28
29
}
de.lathanda.eos.vm.Command
Definition:
Command.java:9
de.lathanda.eos.vm.Machine
Definition:
Machine.java:19
de.lathanda.eos.vm.commands.Not
Definition:
Not.java:12
de.lathanda.eos.vm.commands.Not.execute
boolean execute(Machine m)
Definition:
Not.java:18
de.lathanda.eos.vm.commands.Not.Not
Not()
Definition:
Not.java:14
de.lathanda.eos.vm.commands.Not.toString
String toString()
Definition:
Not.java:25
Impressum