Class AugmentedIndexView
java.lang.Object
io.smallrye.openapi.runtime.scanner.dataobject.AugmentedIndexView
- All Implemented Interfaces:
org.jboss.jandex.IndexView
IndexView augmented with additional methods for common operations
used throughout the data object scanning code.
- Author:
- Marc Savy <marc@rhymewithgravy.com>
-
Method Summary
Modifier and TypeMethodDescriptionMap<org.jboss.jandex.ClassInfo, org.jboss.jandex.MethodInfo> ancestry(org.jboss.jandex.MethodInfo method) static AugmentedIndexViewaugment(org.jboss.jandex.IndexView index) booleancontainsClass(org.jboss.jandex.Type type) Collection<org.jboss.jandex.ClassInfo> getAllKnownImplementors(org.jboss.jandex.DotName interfaceName) Collection<org.jboss.jandex.ClassInfo> getAllKnownSubclasses(org.jboss.jandex.DotName className) Collection<org.jboss.jandex.ClassInfo> getAllKnownSubinterfaces(org.jboss.jandex.DotName interfaceName) Collection<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.jandex.DotName annotationName) Collection<org.jboss.jandex.AnnotationInstance> getAnnotationsWithRepeatable(org.jboss.jandex.DotName annotationName, org.jboss.jandex.IndexView annotationIndex) org.jboss.jandex.ClassInfoorg.jboss.jandex.ClassInfogetClass(org.jboss.jandex.Type type) org.jboss.jandex.ClassInfogetClassByName(org.jboss.jandex.DotName className) Collection<org.jboss.jandex.ClassInfo> getClassesInPackage(org.jboss.jandex.DotName packageName) Collection<org.jboss.jandex.ClassInfo> Collection<org.jboss.jandex.ClassInfo> getKnownDirectImplementors(org.jboss.jandex.DotName className) Collection<org.jboss.jandex.ClassInfo> getKnownDirectSubclasses(org.jboss.jandex.DotName className) Collection<org.jboss.jandex.ClassInfo> getKnownDirectSubinterfaces(org.jboss.jandex.DotName interfaceName) Collection<org.jboss.jandex.ModuleInfo> Collection<org.jboss.jandex.ClassInfo> getKnownUsers(org.jboss.jandex.DotName className) org.jboss.jandex.ModuleInfogetModuleByName(org.jboss.jandex.DotName moduleName) Set<org.jboss.jandex.DotName> getSubpackages(org.jboss.jandex.DotName packageName) Map<org.jboss.jandex.ClassInfo, org.jboss.jandex.Type> inheritanceChain(org.jboss.jandex.ClassInfo klazz, org.jboss.jandex.Type type) Builds an insertion-order map of a class's inheritance chain, starting with the klazz argument.Set<org.jboss.jandex.Type> interfaces(org.jboss.jandex.ClassInfo klass) Retrieve the uniqueTypes that the givenClassInfoimplements.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.jandex.IndexView
getAllKnownImplementors, getAllKnownImplementors, getAllKnownSubclasses, getAllKnownSubclasses, getAllKnownSubinterfaces, getAllKnownSubinterfaces, getAnnotations, getAnnotations, getAnnotationsWithRepeatable, getAnnotationsWithRepeatable, getClassByName, getClassByName, getClassesInPackage, getKnownDirectImplementors, getKnownDirectImplementors, getKnownDirectSubclasses, getKnownDirectSubclasses, getKnownDirectSubinterfaces, getKnownDirectSubinterfaces, getKnownUsers, getKnownUsers, getModuleByName, getSubpackages
-
Method Details
-
augment
-
getClass
public org.jboss.jandex.ClassInfo getClass(org.jboss.jandex.Type type) -
containsClass
public boolean containsClass(org.jboss.jandex.Type type) -
getClass
-
interfaces
Retrieve the uniqueTypes that the givenClassInfoimplements.- Parameters:
klass-- Returns:
- the
Setof interfaces
-
inheritanceChain
public Map<org.jboss.jandex.ClassInfo,org.jboss.jandex.Type> inheritanceChain(org.jboss.jandex.ClassInfo klazz, org.jboss.jandex.Type type) Builds an insertion-order map of a class's inheritance chain, starting with the klazz argument.- Parameters:
klazz- the class to retrieve inheritancetype- type of the klazz- Returns:
- map of a class's inheritance chain/ancestry
-
ancestry
public Map<org.jboss.jandex.ClassInfo,org.jboss.jandex.MethodInfo> ancestry(org.jboss.jandex.MethodInfo method) -
getKnownClasses
- Specified by:
getKnownClassesin interfaceorg.jboss.jandex.IndexView
-
getClassByName
public org.jboss.jandex.ClassInfo getClassByName(org.jboss.jandex.DotName className) - Specified by:
getClassByNamein interfaceorg.jboss.jandex.IndexView
-
getKnownDirectSubclasses
public Collection<org.jboss.jandex.ClassInfo> getKnownDirectSubclasses(org.jboss.jandex.DotName className) - Specified by:
getKnownDirectSubclassesin interfaceorg.jboss.jandex.IndexView
-
getAllKnownSubclasses
public Collection<org.jboss.jandex.ClassInfo> getAllKnownSubclasses(org.jboss.jandex.DotName className) - Specified by:
getAllKnownSubclassesin interfaceorg.jboss.jandex.IndexView
-
getKnownDirectSubinterfaces
public Collection<org.jboss.jandex.ClassInfo> getKnownDirectSubinterfaces(org.jboss.jandex.DotName interfaceName) - Specified by:
getKnownDirectSubinterfacesin interfaceorg.jboss.jandex.IndexView
-
getAllKnownSubinterfaces
public Collection<org.jboss.jandex.ClassInfo> getAllKnownSubinterfaces(org.jboss.jandex.DotName interfaceName) - Specified by:
getAllKnownSubinterfacesin interfaceorg.jboss.jandex.IndexView
-
getKnownDirectImplementors
public Collection<org.jboss.jandex.ClassInfo> getKnownDirectImplementors(org.jboss.jandex.DotName className) - Specified by:
getKnownDirectImplementorsin interfaceorg.jboss.jandex.IndexView
-
getAllKnownImplementors
public Collection<org.jboss.jandex.ClassInfo> getAllKnownImplementors(org.jboss.jandex.DotName interfaceName) - Specified by:
getAllKnownImplementorsin interfaceorg.jboss.jandex.IndexView
-
getAnnotations
public Collection<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.jandex.DotName annotationName) - Specified by:
getAnnotationsin interfaceorg.jboss.jandex.IndexView
-
getAnnotationsWithRepeatable
public Collection<org.jboss.jandex.AnnotationInstance> getAnnotationsWithRepeatable(org.jboss.jandex.DotName annotationName, org.jboss.jandex.IndexView annotationIndex) - Specified by:
getAnnotationsWithRepeatablein interfaceorg.jboss.jandex.IndexView
-
getKnownModules
- Specified by:
getKnownModulesin interfaceorg.jboss.jandex.IndexView
-
getModuleByName
public org.jboss.jandex.ModuleInfo getModuleByName(org.jboss.jandex.DotName moduleName) - Specified by:
getModuleByNamein interfaceorg.jboss.jandex.IndexView
-
getKnownUsers
- Specified by:
getKnownUsersin interfaceorg.jboss.jandex.IndexView
-
getClassesInPackage
public Collection<org.jboss.jandex.ClassInfo> getClassesInPackage(org.jboss.jandex.DotName packageName) - Specified by:
getClassesInPackagein interfaceorg.jboss.jandex.IndexView
-
getSubpackages
- Specified by:
getSubpackagesin interfaceorg.jboss.jandex.IndexView
-