Class JCJavaMethod
java.lang.Object
com.ibm.dtfj.java.javacore.JCJavaMethod
- All Implemented Interfaces:
JavaMember
,JavaMethod
-
Constructor Summary
-
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.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
-
JCJavaMethod
- Throws:
JCInvalidArgumentsException
-
-
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:
-
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
-
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
-
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:
o
-- Returns:
- True if the given object refers to the same Java Method in the image
- 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:
-