Module jdk.jfr

Class RecordedClass



  • public final class RecordedClass
    extends RecordedObject
    A recorded Java type, such as a class or an interface.
    Since:
    9
    • Method Detail

      • 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 JVM, 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 that can never be reused within the life span of the JVM.
        Returns:
        a unique id