public final class RecordedClass extends RecordedObject
Modifier and Type | Method | Description |
---|---|---|
RecordedClassLoader |
getClassLoader() |
Returns the class loader that defined the class. |
long |
getId() |
Returns a unique ID for the class. |
int |
getModifiers() |
Returns the modifiers of the class. |
String |
getName() |
Returns the fully qualified name of the class (for example, "java.lang.String" ). |
getBoolean, getByte, getChar, getClass, getDouble, getDuration, getFields, getFloat, getInstant, getInt, getLong, getShort, getString, getThread, getValue, hasField, toString
public int getModifiers()
public RecordedClassLoader getClassLoader()
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.
null
public String getName()
"java.lang.String"
).null
public long getId()
The ID might not be the same between Java Virtual Machine (JVM) instances.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.jfr/jdk/jfr/consumer/RecordedClass.html