--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeMaker.java Tue Mar 15 13:48:30 2016 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeMaker.java Thu Mar 17 19:04:28 2016 +0000
@@ -125,6 +125,7 @@
Assert.check(node instanceof JCClassDecl
|| node instanceof JCPackageDecl
|| node instanceof JCImport
+ || node instanceof JCModuleDecl
|| node instanceof JCSkip
|| node instanceof JCErroneous
|| (node instanceof JCExpressionStatement
@@ -536,6 +537,41 @@
return Modifiers(flags, List.<JCAnnotation>nil());
}
+ @Override
+ public JCModuleDecl ModuleDef(JCExpression qualid, List<JCDirective> directives) {
+ JCModuleDecl tree = new JCModuleDecl(qualid, directives);
+ tree.pos = pos;
+ return tree;
+ }
+
+ @Override
+ public JCExports Exports(JCExpression qualId, List<JCExpression> moduleNames) {
+ JCExports tree = new JCExports(qualId, moduleNames);
+ tree.pos = pos;
+ return tree;
+ }
+
+ @Override
+ public JCProvides Provides(JCExpression serviceName, JCExpression implName) {
+ JCProvides tree = new JCProvides(serviceName, implName);
+ tree.pos = pos;
+ return tree;
+ }
+
+ @Override
+ public JCRequires Requires(boolean isPublic, JCExpression qualId) {
+ JCRequires tree = new JCRequires(isPublic, qualId);
+ tree.pos = pos;
+ return tree;
+ }
+
+ @Override
+ public JCUses Uses(JCExpression qualId) {
+ JCUses tree = new JCUses(qualId);
+ tree.pos = pos;
+ return tree;
+ }
+
public JCAnnotatedType AnnotatedType(List<JCAnnotation> annotations, JCExpression underlyingType) {
JCAnnotatedType tree = new JCAnnotatedType(annotations, underlyingType);
tree.pos = pos;