aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/annotation/Test.java
blob: 2c9da5e19d222addbb9b5475fc43451a95fc2510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package annotation;

@interface Id {
    int id();
}

enum EnumTest {
    A, B, C
}

@interface Tag {
    boolean z();
    byte b();
    char c();
    short s();
    int i();
    long j();
    float f();
    double d();
    String string();
    Class<? extends Object> integer();
    EnumTest enumtest();
    String[] array();
    Id annotation();
}

@Tag(z = true, b = 1, c = 'a', s = 2, i = 3, j = 4L, f = 5.0F, d = 5.0,
     string = "abc",
     enumtest = EnumTest.A,
     integer = Integer.class,
     array = { "p", "q", "r" },
     annotation = @Id(id = 20))
public class Test {
    public int test() { return 0; }
}