-
- All Superinterfaces:
JavaMember
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 booleanequals(Object obj)Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.IteratorgetBytecodeSections()Get the set of ImageSections containing the bytecode of this method.IteratorgetCompiledSections()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:ObjectCompares 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:
equalsin interfaceJavaMember- Overrides:
equalsin classObject- Parameters:
obj-- Returns:
- True if the given object refers to the same Java Method in the image
- See Also:
Object.hashCode()
-
-