1 /* |
1 /* |
2 * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
103 /** |
103 /** |
104 * Returns the elements annotated with the given annotation type. |
104 * Returns the elements annotated with the given annotation type. |
105 * Only type elements <i>included</i> in this round of annotation |
105 * Only type elements <i>included</i> in this round of annotation |
106 * processing, or declarations of members, parameters, or type |
106 * processing, or declarations of members, parameters, or type |
107 * parameters declared within those, are returned. Included type |
107 * parameters declared within those, are returned. Included type |
108 * elements are {@linkplain #getSpecifiedTypeElements specified |
108 * elements are {@linkplain #getRootElements specified |
109 * types} and any types nested within them. |
109 * types} and any types nested within them. |
110 * |
110 * |
111 * @param a annotation type being requested |
111 * @param a annotation type being requested |
112 * @return the elements annotated with the given annotation type, |
112 * @return the elements annotated with the given annotation type, |
113 * or an empty set if there are none |
113 * or an empty set if there are none |