com.github.blindpirate.annotationmagic.Extends Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotation-magic Show documentation
Show all versions of annotation-magic Show documentation
Empower your Java annotations with magic.
package com.github.blindpirate.annotationmagic;
import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Marks an annotation extends (inherits) another annotation.
* Similar to class inheritance, if annotation X extends annotation Y,
* when searching Y annotation, X annotation will also be returned.
*
* See the documentation on GitHub for more details.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Extends {
Class extends Annotation> value();
}