Package proguard.classfile
Class ProgramMember
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.ProgramMember
-
- All Implemented Interfaces:
java.io.Serializable
,Member
,Processable
- Direct Known Subclasses:
ProgramField
,ProgramMethod
public abstract class ProgramMember extends SimpleProcessable implements Member
Base representation of a field or method from aProgramClass
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Attribute[]
attributes
int
u2accessFlags
int
u2attributesCount
int
u2descriptorIndex
int
u2nameIndex
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProgramMember()
Creates an uninitialized ProgramMember.protected
ProgramMember(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes)
Creates an initialized ProgramMember.protected
ProgramMember(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes, int processingFlags, java.lang.Object processingInfo)
Creates an initialized ProgramMember.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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
getName(Clazz clazz)
Returns the class member name.-
Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
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
-
Methods inherited from interface proguard.util.Processable
getProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfo
-
-
-
-
Field Detail
-
u2accessFlags
public int u2accessFlags
-
u2nameIndex
public int u2nameIndex
-
u2descriptorIndex
public int u2descriptorIndex
-
u2attributesCount
public int u2attributesCount
-
attributes
public Attribute[] attributes
-
-
Constructor Detail
-
ProgramMember
protected ProgramMember()
Creates an uninitialized ProgramMember.
-
ProgramMember
protected ProgramMember(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes)
Creates an initialized ProgramMember.
-
ProgramMember
protected ProgramMember(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes, int processingFlags, java.lang.Object processingInfo)
Creates an initialized ProgramMember.
-
-
Method Detail
-
accept
public abstract void accept(ProgramClass programClass, MemberVisitor memberVisitor)
Accepts the given member info visitor.
-
attributesAccept
public abstract void attributesAccept(ProgramClass programClass, AttributeVisitor attributeVisitor)
Lets the given attribute info visitor visit all the attributes of this member info.
-
getAccessFlags
public int getAccessFlags()
Description copied from interface:Member
Returns the access flags.- Specified by:
getAccessFlags
in interfaceMember
-
getName
public java.lang.String getName(Clazz clazz)
Description copied from interface:Member
Returns the class member name.
-
getDescriptor
public java.lang.String getDescriptor(Clazz clazz)
Description copied from interface:Member
Returns the class member's descriptor.- Specified by:
getDescriptor
in interfaceMember
-
accept
public void accept(Clazz clazz, MemberVisitor memberVisitor)
Description copied from interface:Member
Accepts the given class visitor.
-
-