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

ANEWARRAY.java

00001 package de.fub.bytecode.generic;
00002 
00003 /** 
00004  * ANEWARRAY -  Create new array of references
00005  * <PRE>Stack: ..., count -&gt; ..., arrayref</PRE>
00006  *
00007  * @version $Id: ANEWARRAY.java,v 1.1.1.1 2002/01/24 03:44:05 pserver Exp $
00008  * @author  <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A>
00009  */
00010 public class ANEWARRAY extends CPInstruction
00011   implements LoadClass, AllocationInstruction, ExceptionThrower {
00012   /**
00013    * Empty constructor needed for the Class.newInstance() statement in
00014    * Instruction.readInstruction(). Not to be used otherwise.
00015    */
00016   ANEWARRAY() {}  
00017   public ANEWARRAY(int index) {
00018     super(ANEWARRAY, index);
00019   }  
00020   public Class[] getExceptions(){
00021     Class[] cs = new Class[1 + EXCS_CLASS_AND_INTERFACE_RESOLUTION.length];
00022 
00023     System.arraycopy(EXCS_CLASS_AND_INTERFACE_RESOLUTION, 0,
00024              cs, 0, EXCS_CLASS_AND_INTERFACE_RESOLUTION.length);
00025     cs[EXCS_CLASS_AND_INTERFACE_RESOLUTION.length] =  NEGATIVE_ARRAY_SIZE_EXCEPTION;
00026     return cs;
00027   }  
00028 }

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