|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface provides access to the data in a Java class file (*.class).
| Method Summary | |
void |
accept(ClassFileVisitor classFileVisitor)
Accepts the given class file visitor. |
void |
addSubClass(ClassFile classFile)
Notifies this ClassFile that it is being subclassed by another class. |
void |
attributesAccept(AttrInfoVisitor attrInfoVisitor)
Lets the given attribute info visitor visit all attributes of this class. |
void |
constantPoolEntriesAccept(CpInfoVisitor cpInfoVisitor)
Lets the given constant pool entry visitor visit all constant pool entries of this class. |
void |
constantPoolEntryAccept(CpInfoVisitor cpInfoVisitor,
int index)
Lets the given constant pool entry visitor visit the constant pool entry at the specified index. |
boolean |
extends_(ClassFile classFile)
Returns whether this class extends the given class. |
void |
fieldAccept(MemberInfoVisitor memberInfoVisitor,
String name,
String descriptor)
Lets the given member info visitor visit the specified field. |
void |
fieldsAccept(MemberInfoVisitor memberInfoVisitor)
Lets the given member info visitor visit all fields of this class. |
FieldInfo |
findField(String name,
String descriptor)
Returns the field with the given name and descriptor. |
MethodInfo |
findMethod(String name,
String descriptor)
Returns the method with the given name and descriptor. |
int |
getAccessFlags()
Returns the access flags of this class. |
String |
getCpClassNameString(int cpIndex)
Returns the class name of ClassCpEntry at the specified index. |
String |
getCpNameString(int cpIndex)
Returns the name of the NameAndTypeCpEntry at the specified index. |
String |
getCpString(int cpIndex)
Returns the String value of the StringCpEntry at the specified index. |
int |
getCpTag(int cpIndex)
Returns the tag value of the CpEntry at the specified index. |
String |
getCpTypeString(int cpIndex)
Returns the type of the NameAndTypeCpEntry at the specified index. |
ClassFile |
getInterface(int index)
Returns the interface at the given index. |
String |
getInterfaceName(int index)
Returns the full internal name of the interface at the given index of this class. |
String |
getName()
Returns the full internal name of this class. |
ClassFile |
getSuperClass()
Returns the super class of this class. |
String |
getSuperName()
Returns the full internal name of the super class of this class, or null if this class represents java.lang.Object. |
void |
hierarchyAccept(boolean visitThisClass,
boolean visitSuperClass,
boolean visitInterfaces,
boolean visitSubclasses,
ClassFileVisitor classFileVisitor)
Accepts the given class file visitor in the class hierarchy. |
boolean |
implements_(ClassFile classFile)
Returns whether this class implements the given class. |
void |
methodAccept(MemberInfoVisitor memberInfoVisitor,
String name,
String descriptor)
Lets the given member info visitor visit the specified method. |
void |
methodsAccept(MemberInfoVisitor memberInfoVisitor)
Lets the given member info visitor visit all methods of this class. |
| Methods inherited from interface proguard.classfile.VisitorAccepter |
getVisitorInfo, setVisitorInfo |
| Method Detail |
public int getAccessFlags()
ClassConstantspublic String getName()
public String getSuperName()
public String getInterfaceName(int index)
public int getCpTag(int cpIndex)
public String getCpString(int cpIndex)
public String getCpClassNameString(int cpIndex)
public String getCpNameString(int cpIndex)
public String getCpTypeString(int cpIndex)
public void addSubClass(ClassFile classFile)
public ClassFile getSuperClass()
public ClassFile getInterface(int index)
public boolean extends_(ClassFile classFile)
public boolean implements_(ClassFile classFile)
public FieldInfo findField(String name,
String descriptor)
public MethodInfo findMethod(String name,
String descriptor)
public void accept(ClassFileVisitor classFileVisitor)
public void hierarchyAccept(boolean visitThisClass,
boolean visitSuperClass,
boolean visitInterfaces,
boolean visitSubclasses,
ClassFileVisitor classFileVisitor)
visitThisClass - specifies whether to visit this class.visitSuperClass - specifies whether to visit the super classes.visitInterfaces - specifies whether to visit the interfaces.visitSubclasses - specifies whether to visit the subclasses.classFileVisitor - the ClassFileVisitor that will
visit the class hierarchy.public void constantPoolEntriesAccept(CpInfoVisitor cpInfoVisitor)
public void constantPoolEntryAccept(CpInfoVisitor cpInfoVisitor,
int index)
public void fieldsAccept(MemberInfoVisitor memberInfoVisitor)
public void fieldAccept(MemberInfoVisitor memberInfoVisitor,
String name,
String descriptor)
public void methodsAccept(MemberInfoVisitor memberInfoVisitor)
public void methodAccept(MemberInfoVisitor memberInfoVisitor,
String name,
String descriptor)
public void attributesAccept(AttrInfoVisitor attrInfoVisitor)
|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||