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

IREM.java

00001 package de.fub.bytecode.generic;
00002 
00003 /**
00004  * IREM - Remainder of int
00005  * <PRE>Stack: ..., value1, value2 -&gt; result</PRE>
00006  *
00007  * @version $Id: IREM.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 IREM extends ArithmeticInstruction implements ExceptionThrower {
00011   /** Remainder of ints
00012    */
00013   public IREM() {
00014     super(de.fub.bytecode.Constants.IREM);
00015   }  
00016   /**
00017    * Call corresponding visitor method(s). The order is:
00018    * Call visitor methods of implemented interfaces first, then
00019    * call methods according to the class hierarchy in descending order,
00020    * i.e., the most specific visitXXX() call comes last.
00021    *
00022    * @param v Visitor object
00023    */
00024   public void accept(Visitor v) {
00025     v.visitExceptionThrower(this);
00026     v.visitTypedInstruction(this);
00027     v.visitStackProducer(this);
00028     v.visitStackConsumer(this);
00029     v.visitArithmeticInstruction(this);
00030     v.visitIREM(this);
00031   }  
00032   /** @return exceptions this instruction may cause
00033    */
00034   public Class[] getExceptions() {
00035     return new Class[] { de.fub.bytecode.ExceptionConstants.ARITHMETIC_EXCEPTION };
00036   }  
00037 }

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