1 package annotation; 2 3 @interface Id { id()4 int id(); 5 } 6 7 enum EnumTest { 8 A, B, C 9 } 10 11 @interface Tag { z()12 boolean z(); b()13 byte b(); c()14 char c(); s()15 short s(); i()16 int i(); j()17 long j(); f()18 float f(); d()19 double d(); string()20 String string(); integer()21 Class<? extends Object> integer(); enumtest()22 EnumTest enumtest(); array()23 String[] array(); annotation()24 Id annotation(); 25 } 26 27 @Tag(z = true, b = 1, c = 'a', s = 2, i = 3, j = 4L, f = 5.0F, d = 5.0, 28 string = "abc", 29 enumtest = EnumTest.A, 30 integer = Integer.class, 31 array = { "p", "q", "r" }, 32 annotation = @Id(id = 20)) 33 public class Test { test()34 public int test() { return 0; } 35 } 36