Add new Info
object types for packages and modules:
These can be used to:
- read annotations on package descriptors (
package-info.java
) and module descriptors (module-info.java
) - find all the classes within a given package or module
- find all packages within a given module.
The following methods were added to ScanResult
to get PackageInfo
and ModuleInfo
objects:
PackageInfoList ScanResult#getPackageInfo()
PackageInfo ScanResult#getPackageInfo(String packageName)
ModuleInfoList ScanResult#getModuleInfo()
ModuleInfo ScanResult#getModuleInfo(String moduleName)