proguard.classfile.constant
Class FieldrefConstant
java.lang.Object
proguard.classfile.constant.Constant
proguard.classfile.constant.RefConstant
proguard.classfile.constant.FieldrefConstant
- All Implemented Interfaces:
- VisitorAccepter
public class FieldrefConstant
- extends RefConstant
This Constant represents a field reference constant in the constant pool.
|
Constructor Summary |
FieldrefConstant()
Creates an uninitialized FieldrefConstant. |
FieldrefConstant(int u2classIndex,
int u2nameAndTypeIndex,
Clazz referencedClass,
Member referencedMember)
Creates a new FieldrefConstant 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldrefConstant
public FieldrefConstant()
- Creates an uninitialized FieldrefConstant.
FieldrefConstant
public FieldrefConstant(int u2classIndex,
int u2nameAndTypeIndex,
Clazz referencedClass,
Member referencedMember)
- Creates a new FieldrefConstant 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.
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