Interface JavaMethod
- All Superinterfaces:
JavaMember
- All Known Implementing Classes:
DTFJJavaMethod
,JavaMethod
,JCJavaMethod
,PHDJavaMethod
Represents a method or constructor in a class.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.Get the set of ImageSections containing the bytecode of this method.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 Details
-
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:
-
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:
-
equals
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:
-