author | darcy |
Thu, 08 Mar 2012 08:04:52 -0800 | |
changeset 12051 | 60092b8cec96 |
permissions | -rw-r--r-- |
12051
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
1 |
/* |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
2 |
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
4 |
* |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
10 |
* |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
15 |
* accompanied this code). |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
16 |
* |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
20 |
* |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
23 |
* questions. |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
24 |
*/ |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
25 |
|
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
26 |
package java.lang.annotation; |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
27 |
|
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
28 |
/** |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
29 |
* A meta-annotation to indicate which annotation type should be used |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
30 |
* as a container for repeated values of the annotation type modified |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
31 |
* by the {@code ContainerAnnotation} annotation. |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
32 |
* |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
33 |
* @since 1.8 |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
34 |
* @jls 9.6 Annotation Types |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
35 |
* @jls 9.7 Annotations |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
36 |
*/ |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
37 |
@Documented |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
38 |
@Retention(RetentionPolicy.RUNTIME) |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
39 |
@Target(ElementType.ANNOTATION_TYPE) |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
40 |
public @interface ContainerAnnotation { |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
41 |
/** |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
42 |
* The annotation type to use to store repeated values of another |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
43 |
* annotation. |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
44 |
*/ |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
45 |
Class<? extends Annotation> value(); |
60092b8cec96
7151008: Add library support for repeating annotations in java.lang.annotation
darcy
parents:
diff
changeset
|
46 |
} |