01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.harmony.lang.test.resource;
18:
19: import java.lang.annotation.Retention;
20: import java.lang.annotation.RetentionPolicy;
21:
22: /**
23: * The annotation containing all possible types of elements with default values.
24: *
25: * @author Alexey V. Varlamov
26: * @version $Revision$
27: */
28: @Retention(RetentionPolicy.RUNTIME)
29: @AnotherAntn
30: public @interface AnotherAntn {
31: public enum TheEnum {
32: A, B, C,
33: }
34:
35: public @interface TheAntn {
36: }
37:
38: int intValue() default 345;
39:
40: byte byteValue() default (byte) 28;
41:
42: short shortValue() default (short) 3247;
43:
44: long longValue() default 234956955L;
45:
46: char charValue() default 'q';
47:
48: float floatValue() default 213235.34546546f;
49:
50: double doubleValue() default 7E-34;
51:
52: boolean booleanValue() default true;
53:
54: Class classValue() default AnotherAntn.class;
55:
56: TheEnum enumValue() default TheEnum.A;
57:
58: TheAntn antnValue() default @TheAntn;
59:
60: int[] intArrayValue() default 345;
61:
62: byte[] byteArrayValue() default (byte) 28;
63:
64: short[] shortArrayValue() default (short) 3247;
65:
66: long[] longArrayValue() default 234956955L;
67:
68: char[] charArrayValue() default 'q';
69:
70: float[] floatArrayValue() default 213235.34546546f;
71:
72: double[] doubleArrayValue() default 7E-34;
73:
74: boolean[] booleanArrayValue() default true;
75:
76: Class[] classArrayValue() default AnotherAntn.class;
77:
78: TheEnum[] enumArrayValue() default TheEnum.A;
79:
80: TheAntn[] antnArrayValue() default @TheAntn;
81: }
|