Class FilteredIndexView
- java.lang.Object
-
- io.smallrye.openapi.runtime.scanner.FilteredIndexView
-
- All Implemented Interfaces:
org.jboss.jandex.IndexView
public class FilteredIndexView extends Object implements org.jboss.jandex.IndexView
Wraps anIndexViewinstance and filters the contents based on the settings provided viaOpenApiConfig.- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description FilteredIndexView(org.jboss.jandex.IndexView delegate, OpenApiConfig config)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(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>getKnownClasses()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>getKnownModules()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, wait
-
Methods 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 Detail
-
FilteredIndexView
public FilteredIndexView(org.jboss.jandex.IndexView delegate, OpenApiConfig config)Constructor.- Parameters:
delegate- the original (to be wrapped) indexconfig- the config
-
-
Method Detail
-
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
public Collection<org.jboss.jandex.ClassInfo> getKnownClasses()
- Specified by:
getKnownClassesin interfaceorg.jboss.jandex.IndexView- See Also:
IndexView.getKnownClasses()
-
getClassByName
public org.jboss.jandex.ClassInfo getClassByName(org.jboss.jandex.DotName className)
- Specified by:
getClassByNamein interfaceorg.jboss.jandex.IndexView- See Also:
IndexView.getClassByName(org.jboss.jandex.DotName)
-
getKnownDirectSubclasses
public Collection<org.jboss.jandex.ClassInfo> getKnownDirectSubclasses(org.jboss.jandex.DotName className)
- Specified by:
getKnownDirectSubclassesin interfaceorg.jboss.jandex.IndexView- See Also:
IndexView.getKnownDirectSubclasses(org.jboss.jandex.DotName)
-
getAllKnownSubclasses
public Collection<org.jboss.jandex.ClassInfo> getAllKnownSubclasses(org.jboss.jandex.DotName className)
- Specified by:
getAllKnownSubclassesin interfaceorg.jboss.jandex.IndexView- See Also:
IndexView.getAllKnownSubclasses(org.jboss.jandex.DotName)
-
getKnownDirectSubinterfaces
public Collection<org.jboss.jandex.ClassInfo> getKnownDirectSubinterfaces(org.jboss.jandex.DotName interfaceName)
- Specified by:
getKnownDirectSubinterfacesin interfaceorg.jboss.jandex.IndexView- See Also:
IndexView.getKnownDirectSubinterfaces(org.jboss.jandex.DotName)
-
getAllKnownSubinterfaces
public Collection<org.jboss.jandex.ClassInfo> getAllKnownSubinterfaces(org.jboss.jandex.DotName interfaceName)
- Specified by:
getAllKnownSubinterfacesin interfaceorg.jboss.jandex.IndexView- See Also:
IndexView.getAllKnownSubinterfaces(org.jboss.jandex.DotName)
-
getKnownDirectImplementors
public Collection<org.jboss.jandex.ClassInfo> getKnownDirectImplementors(org.jboss.jandex.DotName className)
- Specified by:
getKnownDirectImplementorsin interfaceorg.jboss.jandex.IndexView- See Also:
IndexView.getKnownDirectImplementors(org.jboss.jandex.DotName)
-
getAllKnownImplementors
public Collection<org.jboss.jandex.ClassInfo> getAllKnownImplementors(org.jboss.jandex.DotName interfaceName)
- Specified by:
getAllKnownImplementorsin interfaceorg.jboss.jandex.IndexView- See Also:
IndexView.getAllKnownImplementors(org.jboss.jandex.DotName)
-
getAnnotations
public Collection<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.jandex.DotName annotationName)
- Specified by:
getAnnotationsin interfaceorg.jboss.jandex.IndexView- See Also:
IndexView.getAnnotations(org.jboss.jandex.DotName)
-
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:
IndexView.getAnnotationsWithRepeatable(org.jboss.jandex.DotName, org.jboss.jandex.IndexView)
-
getKnownModules
public Collection<org.jboss.jandex.ModuleInfo> 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
public Collection<org.jboss.jandex.ClassInfo> getKnownUsers(org.jboss.jandex.DotName className)
- 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
public Set<org.jboss.jandex.DotName> getSubpackages(org.jboss.jandex.DotName packageName)
- Specified by:
getSubpackagesin interfaceorg.jboss.jandex.IndexView
-
-