1   package jrre.instructionset.push.localvariables;
2   
3   import jrre.*;
4   import jrre.classloader.classfile.pool_entries.*;
5   
6   public class ILoad extends jrre.instructionset.Instruction {
7   
8       private int operandOne;
9   
10      public ILoad(int operandOne){
11  
12          this.operandOne = operandOne;
13  
14          name = "iload operandOne";
15          description = "foo foo moo poo";
16          length = 1;
17      }
18     
19      /*** 
20       * Executes the <strong><code>iload operandOne</code></strong> instruction.
21       * 
22       */
23      public void execute(){
24  
25          Stack.pushOperand(Stack.getLocalVariable(operandOne));
26  
27      }
28  
29      public String toString(){
30          return "iload "+Integer.toHexString(operandOne);
31      }
32  }
This page was automatically generated by Maven