equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2014, 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. |
7 * published by the Free Software Foundation. |
108 errors++; |
108 errors++; |
109 } |
109 } |
110 |
110 |
111 int errors; |
111 int errors; |
112 |
112 |
113 class ElemPrinter extends ElementScanner8<Void, Void> { |
113 class ElemPrinter extends ElementScanner9<Void, Void> { |
114 @Override |
114 @Override |
115 public Void visitPackage(PackageElement e, Void p) { |
115 public Void visitPackage(PackageElement e, Void p) { |
116 show("package", e); |
116 show("package", e); |
117 indent(+1); |
117 indent(+1); |
118 super.visitPackage(e, p); |
118 super.visitPackage(e, p); |
199 } |
199 } |
200 |
200 |
201 int indent; |
201 int indent; |
202 }; |
202 }; |
203 |
203 |
204 class TypePrinter extends SimpleTypeVisitor7<Void, Types> { |
204 class TypePrinter extends SimpleTypeVisitor9<Void, Types> { |
205 @Override |
205 @Override |
206 public Void defaultAction(TypeMirror m, Types types) { |
206 public Void defaultAction(TypeMirror m, Types types) { |
207 System.err.println(m.getKind() + " " + m + " " + types.asElement(m)); |
207 System.err.println(m.getKind() + " " + m + " " + types.asElement(m)); |
208 return null; |
208 return null; |
209 } |
209 } |