-
- All Superinterfaces:
JavaMember
- All Known Implementing Classes:
DTFJJavaMethod
,JavaMethod
,JCJavaMethod
,PHDJavaMethod
public interface JavaMethod extends JavaMember
Represents a method or constructor in a class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(Object obj)
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.Iterator
getBytecodeSections()
Get the set of ImageSections containing the bytecode of this method.Iterator
getCompiledSections()
Get the set of ImageSections containing the compiled code of this method.-
Methods declared in interface com.ibm.dtfj.java.JavaMember
getDeclaringClass, getModifiers, getName, getSignature, hashCode
-
-
-
-
Method Detail
-
getBytecodeSections
Iterator getBytecodeSections()
Get the set of ImageSections containing the bytecode of this method.- Returns:
- an iterator over a collection of ImageSections.
Each ImageSection contains data (usually bytecodes) used
in executing this method in interpreted mode.
The collection may be empty for native methods, or pre-compiled methods.
Typically, the collection will contain no more than one section, but this is not guaranteed.
- See Also:
ImageSection
,CorruptData
-
getCompiledSections
Iterator getCompiledSections()
Get the set of ImageSections containing the compiled code of this method.- Returns:
- an iterator over a collection of ImageSections. Each ImageSection contains data (usually executable code) used in executing this method in compiled mode.
- See Also:
ImageSection
,CorruptData
-
equals
boolean equals(Object obj)
Description copied from class:java.lang.Object
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. The implementation in Object answers true only if the argument is the exact same object as the receiver (==).- Specified by:
equals
in interfaceJavaMember
- Overrides:
equals
in classObject
- Parameters:
obj
-- Returns:
- True if the given object refers to the same Java Method in the image
- See Also:
Object.hashCode()
-
-