Interface CtModuleRequirement

  • All Superinterfaces:
    java.lang.Cloneable, CtElement, CtModuleDirective, CtQueryable, CtVisitable, FactoryAccessor, java.io.Serializable, SourcePositionHolder
    All Known Implementing Classes:
    CtModuleRequirementImpl

    public interface CtModuleRequirement
    extends CtModuleDirective
    Represents a require module in a Java module definition The requires directive specifies the name of a module on which the current module has a dependence. The requires keyword may be followed by the modifier transitive. This causes any module which requires the current module to have an implicitly declared dependence on the module specified by the requires transitive directive. The requires keyword may be followed by the modifier static. This specifies that the dependence, while mandatory at compile time, is optional at run time. Example:
         requires transitive com.example.foo.network;