Package proguard.classfile
Class ProgramMethod
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.ProgramMember
-
- proguard.classfile.ProgramMethod
-
- All Implemented Interfaces:
java.io.Serializable
,Member
,Method
,Processable
public class ProgramMethod extends ProgramMember implements Method
ThisMethod
represents a method in aProgramClass
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Clazz[]
referencedClasses
An extra field containing all the classes referenced in the descriptor string.-
Fields inherited from class proguard.classfile.ProgramMember
attributes, u2accessFlags, u2attributesCount, u2descriptorIndex, u2nameIndex
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Constructor Description ProgramMethod()
Creates an uninitialized ProgramMethod.ProgramMethod(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes, Clazz[] referencedClasses)
Creates an initialized ProgramMethod.ProgramMethod(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes, Clazz[] referencedClasses, int processingFlags, java.lang.Object processingInfo)
Creates an initialized ProgramMethod.ProgramMethod(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, Clazz[] referencedClasses)
Creates an initialized ProgramMethod without attributes.ProgramMethod(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, Clazz[] referencedClasses, int processingFlags, java.lang.Object processingInfo)
Creates an initialized ProgramMethod without attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ProgramClass programClass, MemberVisitor memberVisitor)
Accepts the given member info visitor.void
attributesAccept(ProgramClass programClass, AttributeVisitor attributeVisitor)
Lets the given attribute info visitor visit all the attributes of this member info.void
referencedClassesAccept(ClassVisitor classVisitor)
Lets the Clazz objects referenced in the descriptor string accept the given visitor.-
Methods inherited from class proguard.classfile.ProgramMember
accept, getAccessFlags, getDescriptor, getName
-
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
accept, getAccessFlags, getDescriptor, getName
-
Methods inherited from interface proguard.util.Processable
getProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfo
-
-
-
-
Field Detail
-
referencedClasses
public Clazz[] referencedClasses
An extra field containing all the classes referenced in the descriptor string. This field is filled out by theClassReferenceInitializer
. The size of the array is the number of classes in the descriptor. Primitive types and arrays of primitive types are ignored. Unknown classes are represented as null values.
-
-
Constructor Detail
-
ProgramMethod
public ProgramMethod()
Creates an uninitialized ProgramMethod.
-
ProgramMethod
public ProgramMethod(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, Clazz[] referencedClasses)
Creates an initialized ProgramMethod without attributes.
-
ProgramMethod
public ProgramMethod(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, Clazz[] referencedClasses, int processingFlags, java.lang.Object processingInfo)
Creates an initialized ProgramMethod without attributes.
-
ProgramMethod
public ProgramMethod(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes, Clazz[] referencedClasses)
Creates an initialized ProgramMethod.
-
-
Method Detail
-
accept
public void accept(ProgramClass programClass, MemberVisitor memberVisitor)
Description copied from class:ProgramMember
Accepts the given member info visitor.- Specified by:
accept
in classProgramMember
-
attributesAccept
public void attributesAccept(ProgramClass programClass, AttributeVisitor attributeVisitor)
Description copied from class:ProgramMember
Lets the given attribute info visitor visit all the attributes of this member info.- Specified by:
attributesAccept
in classProgramMember
-
referencedClassesAccept
public void referencedClassesAccept(ClassVisitor classVisitor)
Description copied from interface:Member
Lets the Clazz objects referenced in the descriptor string accept the given visitor.- Specified by:
referencedClassesAccept
in interfaceMember
-
-