|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.constant.Constant
proguard.classfile.constant.RefConstant
public abstract class RefConstant
This Constant represents a ref constant in the constant pool.
| Field Summary | |
|---|---|
Clazz |
referencedClass
An extra field pointing to the referenced Clazz object. |
Member |
referencedMember
An extra field optionally pointing to the referenced Member object. |
int |
u2classIndex
|
int |
u2nameAndTypeIndex
|
| Fields inherited from class proguard.classfile.constant.Constant |
|---|
visitorInfo |
| Constructor Summary | |
|---|---|
protected |
RefConstant()
|
| Method Summary | |
|---|---|
int |
getClassIndex()
Returns the class index. |
java.lang.String |
getClassName(Clazz clazz)
Returns the class name. |
java.lang.String |
getName(Clazz clazz)
Returns the method/field name. |
int |
getNameAndTypeIndex()
Returns the name-and-type index. |
java.lang.String |
getType(Clazz clazz)
Returns the type. |
void |
referencedClassAccept(ClassVisitor classVisitor)
Lets the referenced class accept the given visitor. |
void |
referencedMemberAccept(MemberVisitor memberVisitor)
Lets the referenced class member accept the given visitor. |
void |
setNameAndTypeIndex(int index)
Sets the name-and-type index. |
| Methods inherited from class proguard.classfile.constant.Constant |
|---|
accept, getTag, getVisitorInfo, setVisitorInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int u2classIndex
public int u2nameAndTypeIndex
public Clazz referencedClass
ClassReferenceInitializer.
public Member referencedMember
ClassReferenceInitializer.
| Constructor Detail |
|---|
protected RefConstant()
| Method Detail |
|---|
public int getClassIndex()
public int getNameAndTypeIndex()
public void setNameAndTypeIndex(int index)
public java.lang.String getClassName(Clazz clazz)
public java.lang.String getName(Clazz clazz)
public java.lang.String getType(Clazz clazz)
public void referencedClassAccept(ClassVisitor classVisitor)
public void referencedMemberAccept(MemberVisitor memberVisitor)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||