OnJava8-Examples/annotations/InterfaceExtractorProcessorFactory.java

23 lines
700 B
Java
Raw Normal View History

2015-04-20 15:36:01 -07:00
//: annotations/InterfaceExtractorProcessorFactory.java
// APT-based annotation processing.
package annotations;
2015-04-23 15:43:15 -07:00
import com.sun.mirror.apt.*;
import com.sun.mirror.declaration.*;
2015-04-20 15:36:01 -07:00
import java.util.*;
public class InterfaceExtractorProcessorFactory
2015-04-23 15:43:15 -07:00
implements AnnotationProcessorFactory {
public AnnotationProcessor getProcessorFor(
Set<AnnotationTypeDeclaration> atds,
AnnotationProcessorEnvironment env) {
2015-04-20 15:36:01 -07:00
return new InterfaceExtractorProcessor(env);
}
public Collection<String> supportedAnnotationTypes() {
return
Collections.singleton("annotations.ExtractInterface");
}
public Collection<String> supportedOptions() {
return Collections.emptySet();
}
} ///:~