proguard.classfile.constant
Class MethodrefConstant

java.lang.Object
  extended by proguard.classfile.constant.Constant
      extended by proguard.classfile.constant.RefConstant
          extended by proguard.classfile.constant.MethodrefConstant
All Implemented Interfaces:
VisitorAccepter

public class MethodrefConstant
extends RefConstant

This Constant represents a method reference constant in the constant pool.


Field Summary
 
Fields inherited from class proguard.classfile.constant.RefConstant
referencedClass, referencedMember, u2classIndex, u2nameAndTypeIndex
 
Fields inherited from class proguard.classfile.constant.Constant
visitorInfo
 
Constructor Summary
MethodrefConstant()
          Creates an uninitialized MethodrefConstant.
MethodrefConstant(int u2classIndex, int u2nameAndTypeIndex, Clazz referencedClass, Member referencedMember)
          Creates a new MethodrefConstant with the given name and type indices.
 
Method Summary
 void accept(Clazz clazz, ConstantVisitor constantVisitor)
          Accepts the given visitor.
 int getTag()
          Returns the constant pool info tag that specifies the entry type.
 
Methods inherited from class proguard.classfile.constant.RefConstant
getClassIndex, getClassName, getName, getNameAndTypeIndex, getType, referencedClassAccept, referencedMemberAccept, setNameAndTypeIndex
 
Methods inherited from class proguard.classfile.constant.Constant
getVisitorInfo, setVisitorInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodrefConstant

public MethodrefConstant()
Creates an uninitialized MethodrefConstant.


MethodrefConstant

public MethodrefConstant(int u2classIndex,
                         int u2nameAndTypeIndex,
                         Clazz referencedClass,
                         Member referencedMember)
Creates a new MethodrefConstant 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.
referencedClass - the referenced class.
referencedMember - the referenced member info.
Method Detail

getTag

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

Specified by:
getTag in class Constant

accept

public void accept(Clazz clazz,
                   ConstantVisitor constantVisitor)
Description copied from class: Constant
Accepts the given visitor.

Specified by:
accept in class Constant