All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kohsuke.stapler.lang.AnnotatedRef Maven / Gradle / Ivy

There is a newer version: 1.263
Show newest version
package org.kohsuke.stapler.lang;

import java.lang.annotation.Annotation;

/**
 * @author Kohsuke Kawaguchi
 */
public abstract class AnnotatedRef {
    // no subtyping outside the package
    /*package*/ AnnotatedRef() {}

    public abstract  T getAnnotation(Class type);

    public boolean hasAnnotation(Class type) {
        return getAnnotation(type)!=null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy