01: /*******************************************************************************
02: * Copyright (c) 2005, 2007 BEA Systems, Inc.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * tyeung@bea.com - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.apt.tests.annotations.valueconversion;
11:
12: import java.util.Set;
13:
14: import org.eclipse.jdt.apt.tests.annotations.BaseFactory;
15:
16: import com.sun.mirror.apt.AnnotationProcessor;
17: import com.sun.mirror.apt.AnnotationProcessorEnvironment;
18: import com.sun.mirror.declaration.AnnotationTypeDeclaration;
19:
20: public class ValueConversionProcessorFactory extends BaseFactory {
21:
22: public ValueConversionProcessorFactory() {
23: super (Annotation.class.getName(),
24: RefAnnotation.class.getName(),
25: AnnotationWithArray.class.getName(),
26: RefAnnotationWithArray.class.getName());
27: }
28:
29: public AnnotationProcessor getProcessorFor(
30: Set<AnnotationTypeDeclaration> atds,
31: AnnotationProcessorEnvironment env) {
32: return new ValueConversionProcessor(env);
33: }
34: }
|