nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/CompilationUnitTree.java
--- a/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/CompilationUnitTree.java Wed Jul 05 21:57:11 2017 +0200
+++ b/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/CompilationUnitTree.java Tue Jul 12 21:18:13 2016 +0530
@@ -62,4 +62,12 @@
* @return the line map for this compilation unit
*/
LineMap getLineMap();
+
+ /**
+ * Return the {@link ModuleTree} associated with this compilation unit. This is null,
+ * if there is no module information from this compilation unit.
+ *
+ * @return the Module info or null
+ */
+ ModuleTree getModule();
}