Class RecordedClass
- java.lang.Object
-
- jdk.jfr.consumer.RecordedObject
-
- jdk.jfr.consumer.RecordedClass
public final class RecordedClass extends RecordedObject
A recorded Java type, such as a class or an interface.
- Since:
- 9
Methods
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, |
Methods declared in class jdk.jfr.consumer.RecordedObject
getBoolean, getByte, getChar, getClass, getDouble, getDuration, getFields, getFloat, getInstant, getInt, getLong, getShort, getString, getThread, getValue, hasField, toString
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods
getModifiers
public int getModifiers()
Returns the modifiers of the class.
See Modifier
- Returns:
- the modifiers
- See Also:
Modifier
getClassLoader
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:
- the class loader defining this class, can be
null
getName
public String getName()
Returns the fully qualified name of the class (for example, "java.lang.String"
).
- Returns:
- the class name, not
null
getId
public long getId()
Returns a unique ID for the class.
The ID might not be the same between Java Virtual Machine (JVM) instances.
- Returns:
- a unique ID
© 1993, 2020, 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/11/docs/api/jdk.jfr/jdk/jfr/consumer/RecordedClass.html