"Module local" access behaviour in Java 9
<p>As a core of <code>Jigsaw</code> project is the Java Module System, it would be nice to have an ability to restrict access to particular program elements (classes, methods and fields) within particular module only.</p>
<p>It can be helpful when there are some elements in module which are essentially public for this module, but shouldn't be accessible outside this module.</p>
<p>So I'm talking about the next level of access after &quot;package-local&quot;, which could be named &quot;module-local&quot;.</p>
<p>However a brief look on <a href="http://openjdk.java.net/projects/jigsaw/doc/lang-vm.html" rel="nofollow noreferrer">Jigsaw rules</a> and early specs didn't help me to find out such kind of functionality. More specifically <a href="http://download.java.net/java/jdk9/docs/api/javax/lang/model/element/Modifier.html" rel="nofollow noreferrer">this <code>Modifier</code> specification</a> doesn't contain any new elements.</p>
<p>So is there any other possibility to do it in future Java 9?</p>