FileDocCategorySizeDatePackage
ConstantInterfaceMethodref.javaAPI DocJava SE 5 API4229Fri Aug 26 14:55:16 BST 2005com.sun.org.apache.bcel.internal.classfile

ConstantInterfaceMethodref

public final class ConstantInterfaceMethodref extends ConstantCP
This class represents a constant pool reference to an interface method.
version
$Id: ConstantInterfaceMethodref.java,v 1.1.1.1 2001/10/29 19:59:59 jvanzyl Exp $
author
M. Dahm

Fields Summary
Constructors Summary
public ConstantInterfaceMethodref(ConstantInterfaceMethodref c)
Initialize from another object.

    super(Constants.CONSTANT_InterfaceMethodref, c.getClassIndex(), c.getNameAndTypeIndex());
  
ConstantInterfaceMethodref(DataInputStream file)
Initialize instance from file data.

param
file input stream
throw
IOException

    super(Constants.CONSTANT_InterfaceMethodref, file);
  
public ConstantInterfaceMethodref(int class_index, int name_and_type_index)

param
class_index Reference to the class containing the method
param
name_and_type_index and the method signature

    super(Constants.CONSTANT_InterfaceMethodref, class_index, name_and_type_index);
  
Methods Summary
public voidaccept(com.sun.org.apache.bcel.internal.classfile.Visitor v)
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

param
v Visitor object

    v.visitConstantInterfaceMethodref(this);