public interface IMCMethod
There are many different ways methods are represented in Mission Control and in Java: MethodIdentfier, java.lang.String, stack trace locations, profiled methods, JFR methods etc.
Some IMCMethod implementations may support a wide range of method information while others might
only be able provide the basic method name. It's up to the user of this interface to examine what
is available. If information is missing null is returned.
| Modifier and Type | Method and Description |
|---|---|
String |
getFormalDescriptor()
Returns the formal descriptor.
|
String |
getMethodName()
Returns the method name not including parameters.
|
Integer |
getModifier()
Returns the modifier used in the Java class file.
|
IMCType |
getType()
Returns the class this method is declared in.
|
Boolean |
isNative()
Whether this method is native.
|
IMCType getType()
String getMethodName()
An example is "mymethod". If the method is native the format is undefined.
null if unavailableString getFormalDescriptor()
For example, the method descriptor for the method
Object mymethod(int i, double d, Thread t) is
(IDLjava/lang/Thread;)Ljava/lang/Object;
null if unavailableInteger getModifier()
Examples of modifiers are "protected", "public", etc.
See Modifier for more information about the bit pattern and for methods that can be
used to decode it.
null if not availableBoolean isNative()
Boolean.TRUE if the method is native, Boolean.FALSE if not, or
null if the information is not availableCopyright © 2019. All rights reserved.