OnJava8-Examples/obsolete/InterfaceExtractorProcessorFactory.java

23 lines
763 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-20 23:01:41 -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-20 23:01:41 -07:00
implements javax.annotation.processing.Processor {
public javax.annotation.processing.Processor getProcessorFor(
Set<javax.lang.model.element.TypeElement> atds,
javax.annotation.processing.ProcessingEnvironment 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();
}
} ///:~