14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 22 * CA 95054 USA or visit www.sun.com if you need additional information or 23 * have any questions. 24 */ 25 26 package com.sun.mirror.apt; 27 28 import com.sun.mirror.apt.*; 29 import java.util.*; 30 31 /** 32 * Utilities to create specialized annotation processors. 33 * 34 * @since 1.5 35 * @author Joseph D. Darcy 36 * @author Scott Seligman 37 */ 38 public class AnnotationProcessors { 39 static class NoOpAP implements AnnotationProcessor { 40 NoOpAP() {} 41 public void process(){} 42 } 43 44 /** 45 * Combines multiple annotation processors into a simple composite 46 * processor. 47 * The composite processor functions by invoking each of its component 48 * processors in sequence. 49 */ 50 static class CompositeAnnotationProcessor implements AnnotationProcessor { 51 52 private List<AnnotationProcessor> aps = 53 new LinkedList<AnnotationProcessor>(); 54 55 /** 56 * Constructs a new composite annotation processor. 57 * @param aps the component annotation processors | 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 22 * CA 95054 USA or visit www.sun.com if you need additional information or 23 * have any questions. 24 */ 25 26 package com.sun.mirror.apt; 27 28 import com.sun.mirror.apt.*; 29 import java.util.*; 30 31 /** 32 * Utilities to create specialized annotation processors. 33 * 34 * @deprecated All components of this API have been superseded by the 35 * standardized annotation processing API. There is no direct analog 36 * of the functionality of this class in the standardized API. 37 * 38 * @since 1.5 39 * @author Joseph D. Darcy 40 * @author Scott Seligman 41 */ 42 @Deprecated 43 @SuppressWarnings("deprecation") 44 public class AnnotationProcessors { 45 static class NoOpAP implements AnnotationProcessor { 46 NoOpAP() {} 47 public void process(){} 48 } 49 50 /** 51 * Combines multiple annotation processors into a simple composite 52 * processor. 53 * The composite processor functions by invoking each of its component 54 * processors in sequence. 55 */ 56 static class CompositeAnnotationProcessor implements AnnotationProcessor { 57 58 private List<AnnotationProcessor> aps = 59 new LinkedList<AnnotationProcessor>(); 60 61 /** 62 * Constructs a new composite annotation processor. 63 * @param aps the component annotation processors |