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); |