Top Description Fields Constructors Methods
jdk.jfr.consumer

public final Class RecordedClass

extends RecordedObject
Class Inheritance
Imports
jdk.jfr.internal.consumer.ObjectContext

A recorded Java type, such as a class or an interface.
Since
9

Field Summary

Modifier and TypeField and Description
private final long
Inherited from jdk.jfr.consumer.RecordedObject:
objectContextobjects

Constructor Summary

AccessConstructor and Description
pack-priv
RecordedClass(ObjectContext objectContext, long id, Object[] values)

Method Summary

Modifier and TypeMethod and Description
public RecordedClassLoader

Returns:

the class loader defining this class, can be null
getClassLoader
()

Returns the class loader that defined the class.

public long

Returns:

a unique ID
getId
()

Returns a unique ID for the class.

public int

Returns:

the modifiers
getModifiers
()

Returns the modifiers of the class.

public String

Returns:

the class name, not null
getName
()

Returns the fully qualified name of the class (for example, "java.lang.String").

Inherited from jdk.jfr.consumer.RecordedObject:
getBooleangetBytegetChargetClassgetDoublegetDurationgetFieldsgetFloatgetInstantgetIntgetLonggetShortgetStringgetThreadgetTypedgetValuehasFieldobjectAttoString

Field Detail

uniqueIdback to summary
private final long uniqueId

Constructor Detail

RecordedClassback to summary
pack-priv RecordedClass(ObjectContext objectContext, long id, Object[] values)

Method Detail

getClassLoaderback to summary
public RecordedClassLoader getClassLoader()

Returns the class loader that defined the class.

If the bootstrap class loader is represented as null in the Java Virtual Machine (JVM), then null is also the return value of this method.

Returns:RecordedClassLoader

the class loader defining this class, can be null

getIdback to summary
public long getId()

Returns a unique ID for the class.

The ID might not be the same between Java Virtual Machine (JVM) instances.

Returns:long

a unique ID

getModifiersback to summary
public int getModifiers()

Returns the modifiers of the class.

Returns:int

the modifiers

See Also
java.lang.reflect.Modifier
getNameback to summary
public String getName()

Returns the fully qualified name of the class (for example, "java.lang.String").

Returns:String

the class name, not null