APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.jfr.consumer

public final Class RecordedMethod

extends RecordedObject
Class Inheritance
Imports
java.lang.reflect.Modifier, jdk.jfr.internal.consumer.ObjectContext

A recorded method.
Since
9

Field Summary

Inherited from jdk.jfr.consumer.RecordedObject:
INTEGER_MINUS_ONEINTEGER_ZEROLONG_MINUS_ONEobjectContextobjects

Constructor Summary

AccessConstructor and Description
pack-priv
RecordedMethod(ObjectContext objectContext, Object[] values)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

method descriptor
getDescriptor
()

Returns the method descriptor for this method (for example, "(Ljava/lang/String;)V").

public int

Returns:

the modifiers
getModifiers
()

Returns the modifiers for this method.

public String

Returns:

method name, or null if doesn't exist
getName
()

Returns the name of this method, for example "toString".

public RecordedClass

Returns:

the class, may be null if not a Java frame
getType
()

Returns the class this method belongs to, if it belongs to a Java frame.

public boolean

Returns:

true if method is hidden, false otherwise
isHidden
()

Returns whether this method is hidden (for example, wrapper code in a lambda expression).

Inherited from jdk.jfr.consumer.RecordedObject:
getBooleangetBytegetChargetClassgetDoublegetDurationgetFieldsgetFloatgetInstantgetIntgetLonggetShortgetStringgetThreadgetTypedgetValuehasFieldobjectAttoString

Constructor Detail

RecordedMethodback to summary
pack-priv RecordedMethod(ObjectContext objectContext, Object[] values)

Method Detail

getDescriptorback to summary
public String getDescriptor()

Returns the method descriptor for this method (for example, "(Ljava/lang/String;)V").

If this method doesn't belong to a Java frame then the result is undefined.

Returns:String

method descriptor

Java Virtual Machine Specification
4.3 Descriptors
See Also
RecordedFrame#isJavaFrame()
getModifiersback to summary
public int getModifiers()

Returns the modifiers for this method.

If this method doesn't belong to a Java frame, then the result is undefined.

Returns:int

the modifiers

See Also
Modifier, RecordedFrame#isJavaFrame
getNameback to summary
public String getName()

Returns the name of this method, for example "toString".

If this method doesn't belong to a Java frame the result is undefined.

Returns:String

method name, or null if doesn't exist

See Also
RecordedFrame#isJavaFrame()
getTypeback to summary
public RecordedClass getType()

Returns the class this method belongs to, if it belongs to a Java frame.

To ensure this is a Java frame, use the RecordedFrame#isJavaFrame() method.

Returns:RecordedClass

the class, may be null if not a Java frame

See Also
RecordedFrame#isJavaFrame()
isHiddenback to summary
public boolean isHidden()

Returns whether this method is hidden (for example, wrapper code in a lambda expression).

Returns:boolean

true if method is hidden, false otherwise