Interface ScanContext
- All Superinterfaces:
CodegenContext
Classpath scanning code generation context.
-
Method Summary
Modifier and TypeMethodDescriptionio.github.classgraph.ScanResultScan result that should have types from the whole classpath.Methods inherited from interface CodegenContext
annotationMappers, elementMappers, filer, logger, mapperSupportedAnnotationPackages, mapperSupportedAnnotations, module, moduleName, options, scope, supportedOptions, typeHierarchyResolver, typeInfo, typeInfo, typeMappers, uniqueNameModifier and TypeMethodDescriptionList of available annotation mappers in this environment.List of available element mappers in this environment.filer()Filer to generate sources and resources.logger()Logger to log messages according to the environment we run in (Annotation processor, Maven plugin, command line).Annotation packages supported by the mappers.Annotations supported by the mappers.module()Module that is being processed.Configured module name usingCodegenOptions.CODEGEN_MODULE, or name of the module if defined fromCodegenContext.module(), or empty if not identified.options()Code generation options.scope()Current code generation scope.Codegen options supported by the mappers.default TypeHierarchyResolvertypeHierarchyResolver(Function<TypeName, Optional<TypeInfo>> typeInfoLookup) Creates the Java type hierarchy resolver for a processing round.Discover information about the provided type.typeInfo(TypeName typeName, Predicate<TypedElementInfo> elementPredicate) Discover information about the provided type, with a predicate for child elements.List of available type mappers in this environment.uniqueName(TypeInfo type, TypedElementInfo element) Get the unique name for the element within the provided type.
-
Method Details
-
scanResult
io.github.classgraph.ScanResult scanResult()Scan result that should have types from the whole classpath.- Returns:
- scan result
-