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

INVOKESTATIC.java

00001 package de.fub.bytecode.generic;
00002 
00003 import de.fub.bytecode.Constants;
00004 import de.fub.bytecode.ExceptionConstants;
00005 
00006 /** 
00007  * INVOKESTATIC - Invoke a class (static) method
00008  *
00009  * <PRE>Stack: ..., [arg1, [arg2 ...]] -&gt; ...</PRE>
00010  *
00011  * @version $Id: INVOKESTATIC.java,v 1.1.1.1 2002/01/24 03:41:40 pserver Exp $
00012  * @author  <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A>
00013  */
00014 public class INVOKESTATIC extends InvokeInstruction {
00015   /**
00016    * Empty constructor needed for the Class.newInstance() statement in
00017    * Instruction.readInstruction(). Not to be used otherwise.
00018    */
00019   INVOKESTATIC() {}  
00020   public INVOKESTATIC(int index) {
00021     super(Constants.INVOKESTATIC, index);
00022   }  
00023   /**
00024    * Call corresponding visitor method(s). The order is:
00025    * Call visitor methods of implemented interfaces first, then
00026    * call methods according to the class hierarchy in descending order,
00027    * i.e., the most specific visitXXX() call comes last.
00028    *
00029    * @param v Visitor object
00030    */
00031   public void accept(Visitor v) {
00032     v.visitExceptionThrower(this);
00033     v.visitTypedInstruction(this);
00034     v.visitStackConsumer(this);
00035     v.visitStackProducer(this);
00036     v.visitLoadClass(this);
00037     v.visitCPInstruction(this);
00038     v.visitFieldOrMethod(this);
00039     v.visitInvokeInstruction(this);
00040     v.visitINVOKESTATIC(this);
00041   }  
00042   public Class[] getExceptions() {
00043     Class[] cs = new Class[2 + ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length];
00044 
00045     System.arraycopy(ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION, 0,
00046              cs, 0, ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length);
00047 
00048     cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length] = ExceptionConstants.UNSATISFIED_LINK_ERROR;
00049     cs[ExceptionConstants.EXCS_FIELD_AND_METHOD_RESOLUTION.length+1] = ExceptionConstants.INCOMPATIBLE_CLASS_CHANGE_ERROR;
00050 
00051     return cs;
00052   }  
00053 }

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