|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectproguard.classfile.ProgramMemberInfo
Representation of a field or method from a program class file.
| Field Summary | |
AttrInfo[] |
attributes
|
ClassFile[] |
referencedClassFiles
An extra field pointing to the ClassFile objects referenced in the descriptor string. |
int |
u2accessFlags
|
int |
u2attributesCount
|
int |
u2descriptorIndex
|
int |
u2nameIndex
|
Object |
visitorInfo
An extra field in which visitors can store information. |
| Constructor Summary | |
protected |
ProgramMemberInfo()
|
| Method Summary | |
void |
accept(ClassFile classFile,
MemberInfoVisitor memberInfoVisitor)
Accepts the given class file visitor. |
abstract void |
accept(ProgramClassFile programClassFile,
MemberInfoVisitor memberInfoVisitor)
Accepts the given member info visitor. |
abstract void |
attributesAccept(ProgramClassFile programClassFile,
AttrInfoVisitor attrInfoVisitor)
Lets the given attribute info visitor visit all the attributes of this member info. |
int |
getAccessFlags()
Returns access flags. |
String |
getDescriptor(ClassFile classFile)
Returns descriptor string. |
String |
getLineNumberRange(ClassFile classFile)
Returns the line number range of the given class member as "m:n", if it can find it, or null otherwise. |
String |
getName(ClassFile classFile)
Returns method/field string name. |
Object |
getVisitorInfo()
Gets the visitor information of the visitor accepter. |
protected void |
read(DataInput din,
ClassFile cf)
Imports the field or method data to internal representation. |
void |
referencedClassesAccept(ClassFileVisitor classFileVisitor)
Lets the ClassFile objects referenced in the descriptor string accept the given visitor. |
void |
setVisitorInfo(Object visitorInfo)
Sets the visitor information of the visitor accepter. |
void |
write(DataOutput dout)
Exports the representation to a DataOutput stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int u2accessFlags
public int u2nameIndex
public int u2descriptorIndex
public int u2attributesCount
public AttrInfo[] attributes
public ClassFile[] referencedClassFiles
ClassFileReferenceInitializer.
References to primitive types are ignored.
References to library classes are left blank (null).
public Object visitorInfo
| Constructor Detail |
protected ProgramMemberInfo()
| Method Detail |
public String getLineNumberRange(ClassFile classFile)
null otherwise.
public abstract void accept(ProgramClassFile programClassFile,
MemberInfoVisitor memberInfoVisitor)
public abstract void attributesAccept(ProgramClassFile programClassFile,
AttrInfoVisitor attrInfoVisitor)
public void referencedClassesAccept(ClassFileVisitor classFileVisitor)
protected void read(DataInput din,
ClassFile cf)
throws IOException
IOException
public void write(DataOutput dout)
throws IOException
IOExceptionpublic int getAccessFlags()
MemberInfo
getAccessFlags in interface MemberInfopublic String getName(ClassFile classFile)
MemberInfo
getName in interface MemberInfopublic String getDescriptor(ClassFile classFile)
MemberInfo
getDescriptor in interface MemberInfo
public void accept(ClassFile classFile,
MemberInfoVisitor memberInfoVisitor)
MemberInfo
accept in interface MemberInfopublic Object getVisitorInfo()
VisitorAccepter
getVisitorInfo in interface VisitorAccepterpublic void setVisitorInfo(Object visitorInfo)
VisitorAccepter
setVisitorInfo in interface VisitorAccepter
|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||