de.projectory.koivima.operators
Class Add

java.lang.Object
  extended by de.projectory.koivima.core.Element
      extended by de.projectory.koivima.core.Operator
          extended by de.projectory.koivima.operators.Add

public class Add
extends Operator

Adds two integer values. Stack: ... a b => ...c c = a + b


Field Summary
 
Fields inherited from class de.projectory.koivima.core.Element
context
 
Constructor Summary
Add()
           
 
Method Summary
 void execute()
          Adds two integers.
 
Methods inherited from class de.projectory.koivima.core.Operator
pop, popDataElement, popInteger, popString, push, toString
 
Methods inherited from class de.projectory.koivima.core.Element
getExecutionContext, setExecutionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Add

public Add()
Method Detail

execute

public void execute()
Adds two integers.

Specified by:
execute in class Element