- All Superinterfaces:
ModuleElement.Directive
- Enclosing interface:
ModuleElement
An exported package of a module.
- Since:
- 9
-
Method Summary
Modifier and TypeMethodDescriptionReturns the package being exported.List<? extends ModuleElement> Returns the specific modules to which the package is being exported, ornull, if the package is exported to all modules which have readability to this module.Methods declared in interface javax.lang.model.element.ModuleElement.Directive
accept, getKind
-
Method Details
-
getPackage
PackageElement getPackage()Returns the package being exported.- Returns:
- the package being exported
-
getTargetModules
List<? extends ModuleElement> getTargetModules()Returns the specific modules to which the package is being exported, ornull, if the package is exported to all modules which have readability to this module.- Returns:
- the specific modules to which the package is being exported
-