public class ProgramMethod extends ProgramMember implements Method
Method
represents a method in a ProgramClass
.Modifier and Type | Field and Description |
---|---|
Clazz[] |
referencedClasses
An extra field containing all the classes referenced in the descriptor string.
|
attributes, u2accessFlags, u2attributesCount, u2descriptorIndex, u2nameIndex
processingFlags, processingInfo
Constructor and Description |
---|
ProgramMethod()
Creates an uninitialized 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.
|
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.
|
Modifier and Type | Method and 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.
|
accept, getAccessFlags, getDescriptor, getName
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, getAccessFlags, getDescriptor, getName
getProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfo
public Clazz[] referencedClasses
ClassReferenceInitializer
. 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.public ProgramMethod()
public ProgramMethod(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, Clazz[] referencedClasses)
public ProgramMethod(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, Clazz[] referencedClasses, int processingFlags, java.lang.Object processingInfo)
public ProgramMethod(int u2accessFlags, int u2nameIndex, int u2descriptorIndex, int u2attributesCount, Attribute[] attributes, Clazz[] referencedClasses)
public void accept(ProgramClass programClass, MemberVisitor memberVisitor)
ProgramMember
accept
in class ProgramMember
public void attributesAccept(ProgramClass programClass, AttributeVisitor attributeVisitor)
ProgramMember
attributesAccept
in class ProgramMember
public void referencedClassesAccept(ClassVisitor classVisitor)
Member
referencedClassesAccept
in interface Member