Module openj9.dtfj

Interface JavaMethod

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 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

      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 interface JavaMember
      Overrides:
      equals in class Object
      Parameters:
      obj -
      Returns:
      True if the given object refers to the same Java Method in the image
      See Also: