Interface CtModule

All Superinterfaces:
Cloneable, CtElement, CtNamedElement, CtQueryable, CtVisitable, FactoryAccessor, Serializable, SourcePositionHolder
All Known Implementing Classes:
CtModuleImpl, ModuleFactory.CtUnnamedModule

public interface CtModule extends CtNamedElement
Represents a Java module as defined in Java 9. Modules are defined in `module-info.java` as follows:
     module com.example.foo {

     }
 
Modules define required modules, and exported packages for client code. A module can export a service, defined as a type. Provided services are implementations of given service. Modules can require services ("uses" in Java 9) An open module, with the open modifier, grants access at compile time to types in only those packages which are explicitly exported, but grants access at run time to types in all its packages, as if all packages had been exported.