javax.tools.diagnostics.runtime.java
Interface JavaMethod

All Superinterfaces:
JavaMember

public interface JavaMethod
extends JavaMember

Represents a method or constructor in a class


Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<ImageSection> getBytecodeSections()
           Get the set of ImageSections containing the bytecode of this method.
 java.util.List<ImageSection> getCompiledSections()
           Get the set of ImageSections containing the compiled code of this method.
 java.util.List<JavaVariable> getVariables()
           An experimental addition to the API.
 int hashCode()
           
 
Methods inherited from interface javax.tools.diagnostics.runtime.java.JavaMember
getDeclaringClass, getModifiers, getName, getSignature
 

Method Detail

getBytecodeSections

java.util.List<ImageSection> getBytecodeSections()

Get the set of ImageSections containing the bytecode of this method.

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.

The returned list follows the standard semantics for javax.tools.diagnostics collections.

The returned list is never null but could be empty.

Returns:
a list of ImageSections.
See Also:
ImageSection

getCompiledSections

java.util.List<ImageSection> getCompiledSections()

Get the set of ImageSections containing the compiled code of this method.

Each ImageSection contains data (usually executable code) used in executing this method in compiled mode.

The returned list follows the standard semantics for javax.tools.diagnostics collections.

The returned list is never null but could be empty.

Returns:
a list of ImageSections.
See Also:
ImageSection

getVariables

java.util.List<JavaVariable> getVariables()

An experimental addition to the API.

Get the set of JavaVariable objects

The returned list follows the standard semantics for javax.tools.diagnostics collections.

The returned list is never null but could be empty.

Returns:
List of JavaVariable objects available

equals

boolean equals(java.lang.Object obj)
Specified by:
equals in interface JavaMember
Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:
True if the given object refers to the same JavaMethod in the image

hashCode

int hashCode()
Specified by:
hashCode in interface JavaMember
Overrides:
hashCode in class java.lang.Object


Copyright © 2010. All Rights Reserved.