Class CompositeIndex


  • public class CompositeIndex
    extends Object
    Composite annotation index. Represents an annotation index for an entire deployment.
    Author:
    John Bailey
    • Constructor Detail

      • CompositeIndex

        public CompositeIndex​(Collection<org.jboss.jandex.Index> indexes)
      • CompositeIndex

        public CompositeIndex​(CompositeIndex... indexes)
    • Method Detail

      • getAnnotations

        public List<org.jboss.jandex.AnnotationInstance> getAnnotations​(org.jboss.jandex.DotName annotationName)
      • getKnownDirectSubclasses

        public Set<org.jboss.jandex.ClassInfo> getKnownDirectSubclasses​(org.jboss.jandex.DotName className)
      • getAllKnownSubclasses

        public Set<org.jboss.jandex.ClassInfo> getAllKnownSubclasses​(org.jboss.jandex.DotName className)
        Returns all known subclasses of the given class, even non-direct sub classes. (i.e. it returns all known classes that are assignable to the given class);
        Parameters:
        className - The class
        Returns:
        All known subclasses
      • getKnownDirectImplementors

        public Set<org.jboss.jandex.ClassInfo> getKnownDirectImplementors​(org.jboss.jandex.DotName className)
      • getAllKnownImplementors

        public Set<org.jboss.jandex.ClassInfo> getAllKnownImplementors​(org.jboss.jandex.DotName interfaceName)
        Returns all known classes that implement the given interface, directly and indirectly. This will all return classes that implement sub interfaces of the interface, and sub classes of classes that implement the interface. (In short, it will return every class that is assignable to the interface that is found in the index)

        This will only return classes, not interfaces.

        Parameters:
        interfaceName - The interface
        Returns:
        All known implementors of the interface
      • getClassByName

        public org.jboss.jandex.ClassInfo getClassByName​(org.jboss.jandex.DotName className)
      • getKnownClasses

        public Collection<org.jboss.jandex.ClassInfo> getKnownClasses()
      • getIndexes

        public Collection<org.jboss.jandex.Index> getIndexes()