|
|||||||||
| 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.ClassConstant
public class ClassConstant
This Constant represents a class constant in the constant pool.
| Field Summary | |
|---|---|
Clazz |
javaLangClassClass
An extra field pointing to the java.lang.Class Clazz object. |
Clazz |
referencedClass
An extra field pointing to the referenced Clazz object. |
int |
u2nameIndex
|
| Fields inherited from class proguard.classfile.constant.Constant |
|---|
visitorInfo |
| Constructor Summary | |
|---|---|
ClassConstant()
Creates an uninitialized ClassConstant. |
|
ClassConstant(int u2nameIndex,
Clazz referencedClass)
Creates a new ClassConstant with the given name index. |
|
| Method Summary | |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor. |
java.lang.String |
getName(Clazz clazz)
Returns the name. |
int |
getTag()
Returns the constant pool info tag that specifies the entry type. |
void |
referencedClassAccept(ClassVisitor classVisitor)
Lets the referenced class accept the given visitor. |
| 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 |
| Field Detail |
|---|
public int u2nameIndex
public Clazz referencedClass
ClassReferenceInitializer.
public Clazz javaLangClassClass
ClassReferenceInitializer..
| Constructor Detail |
|---|
public ClassConstant()
public ClassConstant(int u2nameIndex,
Clazz referencedClass)
u2nameIndex - the index of the name in the constant pool.referencedClass - the referenced class.| Method Detail |
|---|
public java.lang.String getName(Clazz clazz)
public int getTag()
Constant
getTag in class Constant
public void accept(Clazz clazz,
ConstantVisitor constantVisitor)
Constant
accept in class Constantpublic void referencedClassAccept(ClassVisitor classVisitor)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||