35 import com.sun.tools.classfile.RuntimeVisibleTypeAnnotations_attribute; |
35 import com.sun.tools.classfile.RuntimeVisibleTypeAnnotations_attribute; |
36 import java.util.ArrayList; |
36 import java.util.ArrayList; |
37 import java.util.HashMap; |
37 import java.util.HashMap; |
38 import java.util.List; |
38 import java.util.List; |
39 import java.util.Map; |
39 import java.util.Map; |
|
40 import com.sun.tools.javac.util.StringUtils; |
40 |
41 |
41 /** |
42 /** |
42 * Annotate instructions with details about type annotations. |
43 * Annotate instructions with details about type annotations. |
43 * |
44 * |
44 * <p><b>This is NOT part of any supported API. |
45 * <p><b>This is NOT part of any supported API. |
113 for (Note n: notes) { |
114 for (Note n: notes) { |
114 print(indent); |
115 print(indent); |
115 print("@"); |
116 print("@"); |
116 annotationWriter.write(n.anno, false, true); |
117 annotationWriter.write(n.anno, false, true); |
117 print(", "); |
118 print(", "); |
118 println(n.kind.toString().toLowerCase()); |
119 println(StringUtils.toLowerCase(n.kind.toString())); |
119 } |
120 } |
120 } |
121 } |
121 } |
122 } |
122 |
123 |
123 private AnnotationWriter annotationWriter; |
124 private AnnotationWriter annotationWriter; |