FileDocCategorySizeDatePackage
ConstantFieldref.javaAPI DocJava SE 6 API4116Tue Jun 10 00:22:16 BST 2008com.sun.org.apache.bcel.internal.classfile

ConstantFieldref

public final class ConstantFieldref extends ConstantCP
This class represents a constant pool reference to a field.
version
$Id: ConstantFieldref.java,v 1.1.2.1 2005/07/31 23:46:38 jeffsuttor Exp $
author
M. Dahm

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

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

param
file input stream
throws
IOException

    super(Constants.CONSTANT_Fieldref, file);
  
public ConstantFieldref(int class_index, int name_and_type_index)

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

    super(Constants.CONSTANT_Fieldref, 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 Fields, fields, attributes, etc. spawns a tree of objects.

param
v Visitor object

    v.visitConstantFieldref(this);