Class JavassistModuleHelper
- java.lang.Object
-
- com.github.javaparser.symbolsolver.utils.JavassistModuleHelper
-
public class JavassistModuleHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMODULE_INFO_CLASS_NAME
-
Constructor Summary
Constructors Constructor Description JavassistModuleHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<Pair<java.lang.String,java.util.List<java.lang.String>>>getModuleWithExportedPackages(javassist.CtClass moduleInfo)Javassist does not provide support for modules beyond letting users fetch the module attribute byte array, so the attribute needs to be parsed manually.
-
-
-
Method Detail
-
getModuleWithExportedPackages
public static java.util.Optional<Pair<java.lang.String,java.util.List<java.lang.String>>> getModuleWithExportedPackages(javassist.CtClass moduleInfo)
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.- Parameters:
moduleInfo- the CtClass for module-info.class- Returns:
- a pair of [ModuleName, ExportedPackageNames] if the module attribute is not empty.
-
-