getModuleWithExportedPackages
open fun getModuleWithExportedPackages(moduleInfo: CtClass): Optional<Pair<String, List<String>>>(source)
Javassist does not provide support for modules beyond letting users fetch the module attribute byte array, so the attribute needs to be parsed manually. This is done according to The JVM Spec for the module attribute.
Return
a pair of [ModuleName, ExportedPackageNames] if the module attribute is not empty.
Parameters
moduleInfo
the CtClass for module-info.class