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

ConstantInterfaceMethodref.java

00001 package de.fub.bytecode.classfile;
00002 
00003 import de.fub.bytecode.Constants;
00004 import java.io.*;
00005 
00006 /** 
00007  * This class represents a constant pool reference to an interface method.
00008  *
00009  * @version $Id: ConstantInterfaceMethodref.java,v 1.1.1.1 2002/01/24 03:41:37 pserver Exp $
00010  * @author  <A HREF="http://www.inf.fu-berlin.de/~dahm">M. Dahm</A>
00011  */
00012 public final class ConstantInterfaceMethodref extends ConstantCP {
00013   /**
00014    * @param class_index Reference to the class containing the method
00015    * @param name_and_type_index and the method signature
00016    */
00017   public ConstantInterfaceMethodref(int class_index, 
00018                     int name_and_type_index) {
00019     super(Constants.CONSTANT_InterfaceMethodref, class_index, name_and_type_index);
00020   }  
00021   /**
00022    * Initialize from another object.
00023    */
00024   public ConstantInterfaceMethodref(ConstantInterfaceMethodref c) {
00025     super(Constants.CONSTANT_InterfaceMethodref, c.getClassIndex(), c.getNameAndTypeIndex());
00026   }  
00027   /**
00028    * Initialize instance from file data.
00029    *
00030    * @param file input stream
00031    * @throw IOException
00032    */
00033   ConstantInterfaceMethodref(DataInputStream file) throws IOException
00034   {
00035     super(Constants.CONSTANT_InterfaceMethodref, file);
00036   }  
00037   /**
00038    * Called by objects that are traversing the nodes of the tree implicitely
00039    * defined by the contents of a Java class. I.e., the hierarchy of methods,
00040    * fields, attributes, etc. spawns a tree of objects.
00041    *
00042    * @param v Visitor object
00043    */
00044   public void accept(Visitor v) {
00045     v.visitConstantInterfaceMethodref(this);
00046   }  
00047 }

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