|
|||||||||
| 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.StringConstant
public class StringConstant
This Constant represents a string constant in the constant pool.
| Field Summary | |
|---|---|
Clazz |
javaLangStringClass
An extra field pointing to the java.lang.String Clazz object. |
Clazz |
referencedClass
An extra field pointing to the referenced Clazz object, if this string is being used in Class.forName(), .class, or Class.getDeclaredField/Method constructs. |
Member |
referencedMember
An extra field pointing to the referenced Member object, if this string is being used in Class.getDeclaredField/Method constructs. |
int |
u2stringIndex
|
| Fields inherited from class proguard.classfile.constant.Constant |
|---|
visitorInfo |
| Constructor Summary | |
|---|---|
StringConstant()
Creates an uninitialized StringConstant. |
|
StringConstant(int u2stringIndex,
Clazz referencedClass,
Member referenceMember)
Creates a new StringConstant with the given string index. |
|
| Method Summary | |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor. |
java.lang.String |
getString(Clazz clazz)
Returns the string value. |
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. |
void |
referencedMemberAccept(MemberVisitor memberVisitor)
Lets the referenced member 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 u2stringIndex
public Clazz referencedClass
DynamicClassReferenceInitializer or by the DynamicMemberReferenceInitializer.
public Member referencedMember
DynamicMemberReferenceInitializer.
public Clazz javaLangStringClass
ClassReferenceInitializer..
| Constructor Detail |
|---|
public StringConstant()
public StringConstant(int u2stringIndex,
Clazz referencedClass,
Member referenceMember)
u2stringIndex - the index of the string in the constant pool.referencedClass - the referenced class, if any.referenceMember - the referenced class member, if any.| Method Detail |
|---|
public java.lang.String getString(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)
public void referencedMemberAccept(MemberVisitor memberVisitor)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||