ProGuard

proguard.classfile
Class FieldrefCpInfo

java.lang.Object
  extended byproguard.classfile.CpInfo
      extended byproguard.classfile.RefCpInfo
          extended byproguard.classfile.FieldrefCpInfo
All Implemented Interfaces:
VisitorAccepter

public class FieldrefCpInfo
extends RefCpInfo

Representation of a 'field reference' entry in the ConstantPool.


Field Summary
 
Fields inherited from class proguard.classfile.RefCpInfo
referencedClassFile, referencedMemberInfo, u2classIndex, u2nameAndTypeIndex
 
Fields inherited from class proguard.classfile.CpInfo
visitorInfo
 
Constructor Summary
protected FieldrefCpInfo()
           
  FieldrefCpInfo(int u2classIndex, int u2nameAndTypeIndex, ClassFile referencedClassFile, MemberInfo referencedMemberInfo)
          Creates a new FieldrefCpInfo with the given name and type indices.
 
Method Summary
 void accept(ClassFile classFile, CpInfoVisitor cpInfoVisitor)
          Accepts the given visitor.
 int getTag()
          Returns the class pool info tag that specifies the entry type.
 
Methods inherited from class proguard.classfile.RefCpInfo
getClassIndex, getClassName, getName, getNameAndTypeIndex, getType, readInfo, referencedClassAccept, referencedMemberInfoAccept, setNameAndTypeIndex, writeInfo
 
Methods inherited from class proguard.classfile.CpInfo
create, createOrShare, getVisitorInfo, setVisitorInfo, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldrefCpInfo

protected FieldrefCpInfo()

FieldrefCpInfo

public FieldrefCpInfo(int u2classIndex,
                      int u2nameAndTypeIndex,
                      ClassFile referencedClassFile,
                      MemberInfo referencedMemberInfo)
Creates a new FieldrefCpInfo with the given name and type indices.

Parameters:
u2classIndex - the index of the class in the constant pool.
u2nameAndTypeIndex - the index of the name and type entry in the constant pool.
referencedClassFile - the referenced class file.
referencedMemberInfo - the referenced member info.
Method Detail

getTag

public int getTag()
Description copied from class: CpInfo
Returns the class pool info tag that specifies the entry type.

Specified by:
getTag in class CpInfo

accept

public void accept(ClassFile classFile,
                   CpInfoVisitor cpInfoVisitor)
Description copied from class: CpInfo
Accepts the given visitor.

Specified by:
accept in class CpInfo

ProGuard