mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-20 15:51:32 +00:00
57 lines
838 B
Java
Vendored
57 lines
838 B
Java
Vendored
package test;
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
public class AnnotationTargets {
|
|
|
|
public @interface base {
|
|
|
|
}
|
|
|
|
@Target(ElementType.ANNOTATION_TYPE)
|
|
public @interface annotation {
|
|
|
|
}
|
|
|
|
@Target(ElementType.CONSTRUCTOR)
|
|
public @interface constructor {
|
|
|
|
}
|
|
|
|
@Target(ElementType.FIELD)
|
|
public @interface field {
|
|
|
|
}
|
|
|
|
|
|
@Target(ElementType.LOCAL_VARIABLE)
|
|
public @interface local {
|
|
|
|
}
|
|
|
|
@Target(ElementType.METHOD)
|
|
public @interface method {
|
|
|
|
}
|
|
|
|
@Target(ElementType.PACKAGE)
|
|
public @interface packag {
|
|
|
|
}
|
|
|
|
@Target(ElementType.PARAMETER)
|
|
public @interface parameter {
|
|
|
|
}
|
|
|
|
|
|
@Target(ElementType.TYPE)
|
|
public @interface type {
|
|
|
|
}
|
|
|
|
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD})
|
|
public @interface multiple {
|
|
|
|
}
|
|
} |