View Javadoc
1 package jrre.instructionset.methodinvocation; 2 3 import jrre.Stack; 4 import jrre.types.*; 5 6 public class AReturn extends jrre.instructionset.Instruction { 7 8 public AReturn(){ 9 name = "areturn"; 10 description = "foo foo moo poo"; 11 length = 0; 12 } 13 14 /*** 15 * Executes the <strong><code>areturn</code></strong> instruction. 16 */ 17 public void execute(){ 18 19 Type toReturn = Stack.popOperand(); 20 Stack.pop(); 21 22 if(toReturn != null) 23 Stack.pushOperand(toReturn); 24 } 25 26 public String toString(){ 27 return "return object"; 28 } 29 30 }

This page was automatically generated by Maven