1 /* |
1 /* |
2 * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
503 TypeBoundKind kind = M.at(t.kind.pos).TypeBoundKind(t.kind.kind); |
503 TypeBoundKind kind = M.at(t.kind.pos).TypeBoundKind(t.kind.kind); |
504 JCTree inner = copy(t.inner, p); |
504 JCTree inner = copy(t.inner, p); |
505 return M.at(t.pos).Wildcard(kind, inner); |
505 return M.at(t.pos).Wildcard(kind, inner); |
506 } |
506 } |
507 |
507 |
|
508 @Override |
|
509 public JCTree visitModule(ModuleTree node, P p) { |
|
510 JCModuleDecl t = (JCModuleDecl) node; |
|
511 JCExpression qualId = copy(t.qualId); |
|
512 List<JCDirective> directives = copy(t.directives); |
|
513 return M.at(t.pos).ModuleDef(qualId, directives); |
|
514 } |
|
515 |
|
516 @Override |
|
517 public JCExports visitExports(ExportsTree node, P p) { |
|
518 JCExports t = (JCExports) node; |
|
519 JCExpression qualId = copy(t.qualid, p); |
|
520 List<JCExpression> moduleNames = copy(t.moduleNames, p); |
|
521 return M.at(t.pos).Exports(qualId, moduleNames); |
|
522 } |
|
523 |
|
524 @Override |
|
525 public JCProvides visitProvides(ProvidesTree node, P p) { |
|
526 JCProvides t = (JCProvides) node; |
|
527 JCExpression serviceName = copy(t.serviceName, p); |
|
528 JCExpression implName = copy(t.implName, p); |
|
529 return M.at(t.pos).Provides(serviceName, implName); |
|
530 } |
|
531 |
|
532 @Override |
|
533 public JCRequires visitRequires(RequiresTree node, P p) { |
|
534 JCRequires t = (JCRequires) node; |
|
535 JCExpression moduleName = copy(t.moduleName, p); |
|
536 return M.at(t.pos).Requires(t.isPublic, moduleName); |
|
537 } |
|
538 |
|
539 @Override |
|
540 public JCUses visitUses(UsesTree node, P p) { |
|
541 JCUses t = (JCUses) node; |
|
542 JCExpression serviceName = copy(t.qualid, p); |
|
543 return M.at(t.pos).Uses(serviceName); |
|
544 } |
|
545 |
508 @DefinedBy(Api.COMPILER_TREE) |
546 @DefinedBy(Api.COMPILER_TREE) |
509 public JCTree visitOther(Tree node, P p) { |
547 public JCTree visitOther(Tree node, P p) { |
510 JCTree tree = (JCTree) node; |
548 JCTree tree = (JCTree) node; |
511 switch (tree.getTag()) { |
549 switch (tree.getTag()) { |
512 case LETEXPR: { |
550 case LETEXPR: { |