Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ILOAD.java

00001 package de.fub.bytecode.generic;
00002 
00003 /** 
00004  * ILOAD - Load int from local variable onto stack
00005  * <PRE>Stack: ... -&gt; ..., result</PRE>
00006  *
00007  * @version $Id: ILOAD.java,v 1.1.1.1 2002/01/24 03:41:40 pserver Exp $
00008  * @author  <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A>
00009  */
00010 public class ILOAD extends LocalVariableInstruction
00011   implements PushInstruction, LoadInstruction {
00012   /**
00013    * Empty constructor needed for the Class.newInstance() statement in
00014    * Instruction.readInstruction(). Not to be used otherwise.
00015    */
00016   ILOAD() {
00017     super(de.fub.bytecode.Constants.ILOAD, de.fub.bytecode.Constants.ILOAD_0);
00018   }  
00019   /** Load int from local variable
00020    * @param n index of local variable
00021    */
00022   public ILOAD(int n) {
00023     super(de.fub.bytecode.Constants.ILOAD, de.fub.bytecode.Constants.ILOAD_0, n);
00024   }  
00025   /**
00026    * Call corresponding visitor method(s). The order is:
00027    * Call visitor methods of implemented interfaces first, then
00028    * call methods according to the class hierarchy in descending order,
00029    * i.e., the most specific visitXXX() call comes last.
00030    *
00031    * @param v Visitor object
00032    */
00033   public void accept(Visitor v) {
00034     v.visitStackProducer(this);
00035     v.visitPushInstruction(this);
00036     v.visitLoadInstruction(this);
00037     v.visitTypedInstruction(this);
00038     v.visitLocalVariableInstruction(this);
00039     v.visitILOAD(this);
00040   }  
00041 }

Generated at Thu Feb 7 06:46:34 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001