Class ClassSummary


  • public final class ClassSummary
    extends java.lang.Object
    Summary of a just-indexed class, returned by Indexer.indexWithSummary(InputStream). Contains overview information for reporting progress in batch indexers, as well as some structural information that can safely be exposed to callers during indexing.

    This class must not expose information that could possibly change during post-processing, when completing the index.

    • Field Detail

      • superclassName

        private final DotName superclassName
      • annotations

        private final java.util.Set<DotName> annotations
    • Constructor Detail

      • ClassSummary

        ClassSummary​(DotName name,
                     DotName superclassName,
                     java.util.Set<DotName> annotations)
    • Method Detail

      • name

        public DotName name()
        Returns the name of this class.
      • superclassName

        public DotName superclassName()
        Returns the name of this class's superclass.
      • annotations

        public java.util.Set<DotName> annotations()
        Returns the names of annotations present in this class.
      • annotationsCount

        public int annotationsCount()
        Returns the number of types of annotations present in this class.