test/tools/javac/lib/DPrinter.java

changeset 2134
b0c086cd4520
parent 2014
6cffcd15a17e
child 2525
2eb010b6cb22
equal deleted inserted replaced
2133:19e8eebfbe52 2134:b0c086cd4520
944 * Note: each visitXYZ method ends by calling the corresponding 944 * Note: each visitXYZ method ends by calling the corresponding
945 * visit method for its superclass. 945 * visit method for its superclass.
946 */ 946 */
947 public class TypeVisitor implements Type.Visitor<Void,Void> { 947 public class TypeVisitor implements Type.Visitor<Void,Void> {
948 public Void visitAnnotatedType(AnnotatedType type, Void ignore) { 948 public Void visitAnnotatedType(AnnotatedType type, Void ignore) {
949 printList("typeAnnotations", type.typeAnnotations); 949 printList("typeAnnotations", type.getAnnotationMirrors());
950 printType("underlyingType", type.underlyingType, Details.FULL); 950 printType("underlyingType", type.unannotatedType(), Details.FULL);
951 return visitType(type, null); 951 return visitType(type, null);
952 } 952 }
953 953
954 public Void visitArrayType(ArrayType type, Void ignore) { 954 public Void visitArrayType(ArrayType type, Void ignore) {
955 printType("elemType", type.elemtype, Details.FULL); 955 printType("elemType", type.elemtype, Details.FULL);

mercurial