EOS 2
1.1.0
Einfache Objektbasierte Sprache
EosVM
src
de
lathanda
eos
vm
commands
StoreVariable.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
StoreVariable
extends
Command
{
13
private
final
String variable;
14
15
public
StoreVariable
(String variable) {
16
this.variable = variable;
17
}
18
19
@Override
20
public
boolean
execute
(
Machine
m)
throws
Exception {
21
m.set(variable, m.pop());
22
return
true
;
23
}
24
25
@Override
26
public
String
toString
() {
27
return
"StoreVariable{"
+ variable +
'}'
;
28
}
29
30
}
de.lathanda.eos.vm.Command
Definition:
Command.java:9
de.lathanda.eos.vm.Machine
Definition:
Machine.java:19
de.lathanda.eos.vm.commands.StoreVariable
Definition:
StoreVariable.java:12
de.lathanda.eos.vm.commands.StoreVariable.StoreVariable
StoreVariable(String variable)
Definition:
StoreVariable.java:15
de.lathanda.eos.vm.commands.StoreVariable.execute
boolean execute(Machine m)
Definition:
StoreVariable.java:20
de.lathanda.eos.vm.commands.StoreVariable.toString
String toString()
Definition:
StoreVariable.java:26
Impressum