EOS 2  1.1.0
Einfache Objektbasierte Sprache
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 }
boolean execute(Machine m)
Definition: Not.java:18
Impressum