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

ARRAYLENGTH.java

00001 package de.fub.bytecode.generic;
00002 
00003 /** 
00004  * ARRAYLENGTH -  Get length of array
00005  * <PRE>Stack: ..., arrayref -&gt; ..., length</PRE>
00006  *
00007  * @version $Id: ARRAYLENGTH.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 ARRAYLENGTH extends Instruction
00011   implements ExceptionThrower, StackProducer {
00012   /** Get length of array
00013    */
00014   public ARRAYLENGTH() {
00015     super(de.fub.bytecode.Constants.ARRAYLENGTH, (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.visitExceptionThrower(this);
00027     v.visitStackProducer(this);
00028     v.visitARRAYLENGTH(this);
00029   }  
00030   /** @return exceptions this instruction may cause
00031    */
00032   public Class[] getExceptions() {
00033     return new Class[] { de.fub.bytecode.ExceptionConstants.NULL_POINTER_EXCEPTION };
00034   }  
00035 }

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