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

LDC_W.java

00001 package de.fub.bytecode.generic;
00002 
00003 import java.io.IOException;
00004 import de.fub.bytecode.util.ByteSequence;
00005 
00006 /** 
00007  * LDC_W - Push item from constant pool (wide index)
00008  *
00009  * <PRE>Stack: ... -&gt; ..., item.word1, item.word2</PRE>
00010  *
00011  * @version $Id: LDC_W.java,v 1.1.1.1 2002/01/24 03:41:41 pserver Exp $
00012  * @author  <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A>
00013  */
00014 public class LDC_W extends LDC {
00015   /**
00016    * Empty constructor needed for the Class.newInstance() statement in
00017    * Instruction.readInstruction(). Not to be used otherwise.
00018    */
00019   LDC_W() {}  
00020   public LDC_W(int index) {
00021     super(index);
00022   }  
00023   /**
00024    * Read needed data (i.e., index) from file.
00025    */
00026   protected void initFromFile(ByteSequence bytes, boolean wide)
00027        throws IOException
00028   {
00029     setIndex(bytes.readUnsignedShort());
00030     length = 3;
00031   }  
00032 }

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