Class FilteredIndexView
java.lang.Object
io.smallrye.openapi.runtime.scanner.FilteredIndexView
- All Implemented Interfaces:
org.jboss.jandex.IndexView
Wraps an
IndexView instance and filters the contents based on the
settings provided via OpenApiConfig.- Author:
- eric.wittmann@gmail.com
-
Constructor Summary
ConstructorsConstructorDescriptionFilteredIndexView(org.jboss.jandex.IndexView delegate, OpenApiConfig config) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(org.jboss.jandex.DotName className) Returns true if the class name should be included in the index (is either included or not excluded).booleanaccepts(org.jboss.jandex.DotName className, boolean allowImpliedInclusion) Returns true if the class name should be included in the index (is either included or not excluded).booleanexplicitlyAccepts(org.jboss.jandex.DotName className) Returns true if the class name should be included in the index, only when explicitly included (and not excluded) via configuration.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.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) 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
-
Constructor Details
-
FilteredIndexView
Constructor.- Parameters:
delegate- the original (to be wrapped) indexconfig- the config
-
-
Method Details
-
accepts
public boolean accepts(org.jboss.jandex.DotName className) Returns true if the class name should be included in the index (is either included or not excluded).- Parameters:
className- the name of the class- Returns:
- true if the inclusion/exclusion configuration allows scanning of the class name
-
explicitlyAccepts
public boolean explicitlyAccepts(org.jboss.jandex.DotName className) Returns true if the class name should be included in the index, only when explicitly included (and not excluded) via configuration.- Parameters:
className- the name of the class- Returns:
- true if the inclusion/exclusion configuration allows scanning of the class name
-
accepts
public boolean accepts(org.jboss.jandex.DotName className, boolean allowImpliedInclusion) Returns true if the class name should be included in the index (is either included or not excluded).- Parameters:
className- the name of the classallowImpliedInclusion- whether the class may be implied for inclusion- Returns:
- true if the inclusion/exclusion configuration allows scanning of the class name
-
getKnownClasses
- Specified by:
getKnownClassesin interfaceorg.jboss.jandex.IndexView- See Also:
-
getClassByName
public org.jboss.jandex.ClassInfo getClassByName(org.jboss.jandex.DotName className) - Specified by:
getClassByNamein interfaceorg.jboss.jandex.IndexView- See Also:
-
getKnownDirectSubclasses
public Collection<org.jboss.jandex.ClassInfo> getKnownDirectSubclasses(org.jboss.jandex.DotName className) - Specified by:
getKnownDirectSubclassesin interfaceorg.jboss.jandex.IndexView- See Also:
-
getAllKnownSubclasses
public Collection<org.jboss.jandex.ClassInfo> getAllKnownSubclasses(org.jboss.jandex.DotName className) - Specified by:
getAllKnownSubclassesin interfaceorg.jboss.jandex.IndexView- See Also:
-
getKnownDirectSubinterfaces
public Collection<org.jboss.jandex.ClassInfo> getKnownDirectSubinterfaces(org.jboss.jandex.DotName interfaceName) - Specified by:
getKnownDirectSubinterfacesin interfaceorg.jboss.jandex.IndexView- See Also:
-
getAllKnownSubinterfaces
public Collection<org.jboss.jandex.ClassInfo> getAllKnownSubinterfaces(org.jboss.jandex.DotName interfaceName) - Specified by:
getAllKnownSubinterfacesin interfaceorg.jboss.jandex.IndexView- See Also:
-
getKnownDirectImplementors
public Collection<org.jboss.jandex.ClassInfo> getKnownDirectImplementors(org.jboss.jandex.DotName className) - Specified by:
getKnownDirectImplementorsin interfaceorg.jboss.jandex.IndexView- See Also:
-
getAllKnownImplementors
public Collection<org.jboss.jandex.ClassInfo> getAllKnownImplementors(org.jboss.jandex.DotName interfaceName) - Specified by:
getAllKnownImplementorsin interfaceorg.jboss.jandex.IndexView- See Also:
-
getAnnotations
public Collection<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.jandex.DotName annotationName) - Specified by:
getAnnotationsin interfaceorg.jboss.jandex.IndexView- See Also:
-
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- See Also:
-
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
-