EOS 2  1.1.0
Einfache Objektbasierte Sprache
UserFunction.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 UserFunction extends Command {
13  private final String signature;
14 
15  public UserFunction(String signature) {
16  this.signature = signature;
17  }
18 
19  @Override
20  public boolean execute(Machine m) throws Exception {
21  m.call(signature);
22  return true;
23  }
24 
25  @Override
26  public String toString() {
27  return "UserFunction{" + signature + '}';
28  }
29 
30 }
Impressum