pax_global_header 0000666 0000000 0000000 00000000064 11723011511 0014502 g ustar 00root root 0000000 0000000 52 comment=f5a70129e549c80f1adebaffa46c3454f8e067b6
kohsuke-metainf-services-cab3195/ 0000775 0000000 0000000 00000000000 11723011511 0017026 5 ustar 00root root 0000000 0000000 kohsuke-metainf-services-cab3195/.gitignore 0000664 0000000 0000000 00000000010 11723011511 0021005 0 ustar 00root root 0000000 0000000 /target/ kohsuke-metainf-services-cab3195/pom.xml 0000664 0000000 0000000 00000006422 11723011511 0020347 0 ustar 00root root 0000000 0000000
* If the class for which this annotation is placaed only have one base class or one interface, * then the CONTRACTNAME is the fully qualified name of that type. * *
* Otherwise, the {@link #value()} element is required to specify the contract type name.
*
* @author Kohsuke Kawaguchi
*/
@Retention(SOURCE)
@Documented
@Target(TYPE)
public @interface MetaInfServices {
Class value() default void.class;
}
kohsuke-metainf-services-cab3195/src/main/java/org/kohsuke/metainf_services/ 0000775 0000000 0000000 00000000000 11723011511 0027250 5 ustar 00root root 0000000 0000000 AnnotationProcessorImpl.java 0000664 0000000 0000000 00000015512 11723011511 0034674 0 ustar 00root root 0000000 0000000 kohsuke-metainf-services-cab3195/src/main/java/org/kohsuke/metainf_services /*
* The MIT License
*
* Copyright (c) 2009-, Kohsuke Kawaguchi
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.kohsuke.metainf_services;
import org.kohsuke.MetaInfServices;
import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.Filer;
import javax.annotation.processing.RoundEnvironment;
import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;
import javax.lang.model.type.DeclaredType;
import javax.lang.model.type.MirroredTypeException;
import javax.lang.model.type.TypeKind;
import javax.lang.model.type.TypeMirror;
import javax.lang.model.util.Elements;
import javax.tools.Diagnostic.Kind;
import javax.tools.FileObject;
import javax.tools.StandardLocation;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
/**
* @author Kohsuke Kawaguchi
*/
@SuppressWarnings({"Since15"})
public class AnnotationProcessorImpl extends AbstractProcessor {
@Override
public Set