java.lang.Object
com.ibm.dtfj.java.j9.JavaMethod
- All Implemented Interfaces:
JavaMember,JavaMethod
-
Constructor Summary
ConstructorsConstructorDescriptionJavaMethod(ImagePointer methodID, String name, String signature, int modifiers, JavaClass declaringClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateNewBytecodeSection(long start, long size) voidcreateNewJITSection(long id, long start, long size) booleanCompares 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 methodintGet 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 methodinthashCode()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:JavaMethodGet the set of ImageSections containing the bytecode of this method.- Specified by:
getBytecodeSectionsin 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:JavaMethodGet the set of ImageSections containing the compiled code of this method.- Specified by:
getCompiledSectionsin 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:JavaMemberGet the set of modifiers for this field or method - a set of bits- Specified by:
getModifiersin 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:JavaMemberGet the class which declares this field or method- Specified by:
getDeclaringClassin interfaceJavaMember- Returns:
- the JavaClass which declared this field or method
- Throws:
CorruptDataExceptionDataUnavailable
-
getName
Description copied from interface:JavaMemberGet the name of the field or method- Specified by:
getNamein interfaceJavaMember- Returns:
- the name of the field or method
- Throws:
CorruptDataException
-
getSignature
Description copied from interface:JavaMemberGet the signature of the field or method- Specified by:
getSignaturein interfaceJavaMember- Returns:
- the signature of the field or method. e.g. "(Ljava/lang/String;)V"
- Throws:
CorruptDataException
-
equals
Description copied from class:java.lang.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- Specified by:
equalsin interfaceJavaMethod- Overrides:
equalsin classObject- Parameters:
obj- Object the object to compare with this object.- Returns:
- boolean
trueif the object is the same as this objectfalseif it is different from this object. - See Also:
-
hashCode
public int hashCode()Description copied from class:java.lang.ObjectAnswers an integer hash code for the receiver. Any two objects which answertruewhen passed to.equalsmust answer the same value for this method.- Specified by:
hashCodein interfaceJavaMember- Overrides:
hashCodein 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)
-