|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.ProgramMember
public abstract class ProgramMember
Representation of a field or method from a program class.
| Field Summary | |
|---|---|
Attribute[] |
attributes
|
int |
u2accessFlags
|
int |
u2attributesCount
|
int |
u2descriptorIndex
|
int |
u2nameIndex
|
java.lang.Object |
visitorInfo
An extra field in which visitors can store information. |
| Constructor Summary | |
|---|---|
protected |
ProgramMember()
Creates an uninitialized ProgramMember. |
protected |
ProgramMember(int u2accessFlags,
int u2nameIndex,
int u2descriptorIndex,
int u2attributesCount,
Attribute[] attributes)
Creates an initialized ProgramMember. |
| Method Summary | |
|---|---|
void |
accept(Clazz clazz,
MemberVisitor memberVisitor)
Accepts the given class visitor. |
abstract void |
accept(ProgramClass programClass,
MemberVisitor memberVisitor)
Accepts the given member info visitor. |
abstract void |
attributesAccept(ProgramClass programClass,
AttributeVisitor attributeVisitor)
Lets the given attribute info visitor visit all the attributes of this member info. |
int |
getAccessFlags()
Returns the access flags. |
java.lang.String |
getDescriptor(Clazz clazz)
Returns the class member's descriptor. |
java.lang.String |
getLineNumberRange(Clazz clazz)
Returns the line number range of the given class member as "m:n", if it can find it, or null otherwise. |
java.lang.String |
getName(Clazz clazz)
Returns the class member name. |
java.lang.Object |
getVisitorInfo()
Gets the visitor information of the visitor accepter. |
void |
setVisitorInfo(java.lang.Object visitorInfo)
Sets the visitor information of the visitor accepter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface proguard.classfile.Member |
|---|
referencedClassesAccept |
| Field Detail |
|---|
public int u2accessFlags
public int u2nameIndex
public int u2descriptorIndex
public int u2attributesCount
public Attribute[] attributes
public java.lang.Object visitorInfo
| Constructor Detail |
|---|
protected ProgramMember()
protected ProgramMember(int u2accessFlags,
int u2nameIndex,
int u2descriptorIndex,
int u2attributesCount,
Attribute[] attributes)
| Method Detail |
|---|
public java.lang.String getLineNumberRange(Clazz clazz)
null otherwise.
public abstract void accept(ProgramClass programClass,
MemberVisitor memberVisitor)
public abstract void attributesAccept(ProgramClass programClass,
AttributeVisitor attributeVisitor)
public int getAccessFlags()
Member
getAccessFlags in interface Memberpublic java.lang.String getName(Clazz clazz)
Member
getName in interface Memberpublic java.lang.String getDescriptor(Clazz clazz)
Member
getDescriptor in interface Member
public void accept(Clazz clazz,
MemberVisitor memberVisitor)
Member
accept in interface Memberpublic java.lang.Object getVisitorInfo()
VisitorAccepter
getVisitorInfo in interface VisitorAccepterpublic void setVisitorInfo(java.lang.Object visitorInfo)
VisitorAccepter
setVisitorInfo in interface VisitorAccepter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||