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

CHECKCAST.java

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

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