java.lang.Object
com.ibm.dtfj.java.j9.JavaMethod
- All Implemented Interfaces:
JavaMember
,JavaMethod
-
Constructor Summary
ConstructorDescriptionJavaMethod
(ImagePointer methodID, String name, String signature, int modifiers, JavaClass declaringClass) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createNewBytecodeSection
(long start, long size) void
createNewJITSection
(long id, long start, long size) boolean
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.Get the class which declares this field or methodint
Get the set of modifiers for this field or method - a set of bitsgetName()
Get the name of the field or methodGet the signature of the field or methodint
hashCode()
Answers an integer hash code for the receiver.
-
Constructor Details
-
JavaMethod
public JavaMethod(ImagePointer methodID, String name, String signature, int modifiers, JavaClass declaringClass)
-
-
Method Details
-
getBytecodeSections
Description copied from interface:JavaMethod
Get the set of ImageSections containing the bytecode of this method.- Specified by:
getBytecodeSections
in interfaceJavaMethod
- 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
Description copied from interface:JavaMethod
Get the set of ImageSections containing the compiled code of this method.- Specified by:
getCompiledSections
in interfaceJavaMethod
- 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:
-
getModifiers
Description copied from interface:JavaMember
Get the set of modifiers for this field or method - a set of bits- Specified by:
getModifiers
in interfaceJavaMember
- Returns:
- the modifiers for this field or method. The values for the constants representing the modifiers can be obtained from java.lang.reflect.Modifier.
- Throws:
CorruptDataException
-
getDeclaringClass
Description copied from interface:JavaMember
Get the class which declares this field or method- Specified by:
getDeclaringClass
in interfaceJavaMember
- Returns:
- the JavaClass which declared this field or method
- Throws:
CorruptDataException
DataUnavailable
-
getName
Description copied from interface:JavaMember
Get the name of the field or method- Specified by:
getName
in interfaceJavaMember
- Returns:
- the name of the field or method
- Throws:
CorruptDataException
-
getSignature
Description copied from interface:JavaMember
Get the signature of the field or method- Specified by:
getSignature
in interfaceJavaMember
- Returns:
- the signature of the field or method. e.g. "(Ljava/lang/String;)V"
- Throws:
CorruptDataException
-
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
- Specified by:
equals
in interfaceJavaMethod
- Overrides:
equals
in classObject
- Parameters:
obj
- Object the object to compare with this object.- Returns:
- boolean
true
if the object is the same as this objectfalse
if it is different from this object. - See Also:
-
hashCode
public int hashCode()Description copied from class:java.lang.Object
Answers an integer hash code for the receiver. Any two objects which answertrue
when passed to.equals
must answer the same value for this method.- Specified by:
hashCode
in interfaceJavaMember
- Overrides:
hashCode
in classObject
- Returns:
- the receiver's hash.
- See Also:
-
createNewBytecodeSection
public void createNewBytecodeSection(long start, long size) -
createNewJITSection
public void createNewJITSection(long id, long start, long size)
-