@@ -0,0 +1,1164 @@
+package de.asw.java.training2016.lang;%0A%0Aimport java.lang.annotation.Documented;%0Aimport java.lang.annotation.ElementType;%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0Aimport java.lang.annotation.Target;%0Aimport java.util.List;%0A%0A// Verwendung%0A@Example(%22Annotations%22)%0Apublic class AnnotationsExample %7B%0A%7D%0A%0A// Definition%0A@Documented%0A@Target(%7B ElementType.TYPE %7D)%0A@Retention(RetentionPolicy.RUNTIME)%0A@interface Example %7B%0A%09String value() default %22Beispiel%22;%0A%7D%0A%0A@AnTyp%0Aclass Typ %7B%0A%0A%09@AnField%0A%09String field;%0A%0A%09@AnConstructor%0A%09public Typ(@AnParameter String param) %7B%0A%09%7D%0A%0A%09public Typ(List%3C@AnGenericTypeParameter String%3E params) %7B%0A%09%7D%0A%0A%09@AnMethod%0A%09public void methode() %7B%0A%0A%09%7D%0A%7D%0A%0A@Target(ElementType.TYPE)%0A@interface AnTyp %7B%0A%7D%0A%0A@Target(ElementType.CONSTRUCTOR)%0A@interface AnConstructor %7B%0A%7D%0A%0A@Target(ElementType.FIELD)%0A@interface AnField %7B%0A%7D%0A%0A@Target(ElementType.METHOD)%0A@interface AnMethod %7B%0A%7D%0A%0A@Target(ElementType.PARAMETER)%0A@interface AnParameter %7B%0A%7D%0A%0A@Target(ElementType.TYPE_USE) // Seit Java 8%0A@interface AnGenericTypeParameter %7B%0A%7D%0A%0A@AnAnnotation%0A@Target(ElementType.ANNOTATION_TYPE)%0A@interface AnAnnotation %7B%0A%7D%0A%0A@interface AnAll %7B%09%0A%7D

Add annotations example