| 1 | package codes.rafael.asmjdkbridge.test; |
| 2 | |
| 3 | import java.lang.annotation.Retention; |
| 4 | import java.lang.annotation.RetentionPolicy; |
| 5 | |
| 6 | @Annotations.A(0) |
| 7 | @Annotations.B(0) |
| 8 | public class Annotations { |
| 9 | |
| 10 | @A(1) |
| 11 | @B(1) |
| 12 | Object o; |
| 13 | |
| 14 | @C( |
| 15 | aa = "a", |
| 16 | ba = 0, |
| 17 | c = @D, |
| 18 | ca = @D, |
| 19 | e = E.VALUE, |
| 20 | ea = E.VALUE |
| 21 | ) |
| 22 | Object v; |
| 23 | |
| 24 | @A(2) |
| 25 | @B(2) |
| 26 | Object a(@A(3) @B(3) Object o) { |
| 27 | return o; |
| 28 | } |
| 29 | |
| 30 | @Retention(RetentionPolicy.RUNTIME) |
| 31 | @interface A { |
| 32 | int value(); |
| 33 | } |
| 34 | |
| 35 | @interface B { |
| 36 | int value(); |
| 37 | } |
| 38 | |
| 39 | @interface C { |
| 40 | |
| 41 | String[] aa(); |
| 42 | |
| 43 | int[] ba(); |
| 44 | |
| 45 | D c(); |
| 46 | |
| 47 | D[] ca(); |
| 48 | |
| 49 | E e(); |
| 50 | |
| 51 | E[] ea(); |
| 52 | } |
| 53 | |
| 54 | @interface D { } |
| 55 | |
| 56 | enum E { |
| 57 | VALUE |
| 58 | } |
| 59 | } |