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

ATHROW.java

00001 package de.fub.bytecode.generic;
00002 
00003 /** 
00004  * ATHROW -  Throw exception
00005  * <PRE>Stack: ..., objectref -&gt; objectref</PRE>
00006  *
00007  * @version $Id: ATHROW.java,v 1.1.1.1 2002/01/24 03:41:38 pserver Exp $
00008  * @author  <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A>
00009  */
00010 public class ATHROW extends Instruction implements UnconditionalBranch, ExceptionThrower {
00011   /** 
00012    *  Throw exception
00013    */
00014   public ATHROW() {
00015     super(de.fub.bytecode.Constants.ATHROW, (short)1);
00016   }  
00017   /**
00018    * Call corresponding visitor method(s). The order is:
00019    * Call visitor methods of implemented interfaces first, then
00020    * call methods according to the class hierarchy in descending order,
00021    * i.e., the most specific visitXXX() call comes last.
00022    *
00023    * @param v Visitor object
00024    */
00025   public void accept(Visitor v) {
00026     v.visitUnconditionalBranch(this);
00027     v.visitExceptionThrower(this);
00028     v.visitATHROW(this);
00029   }  
00030   /** @return exceptions this instruction may cause
00031    */
00032   public Class[] getExceptions() {
00033     return new Class[] { de.fub.bytecode.ExceptionConstants.THROWABLE };
00034   }  
00035 }

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