KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > aval > annotation > Implementation


1 package spoon.aval.annotation;
2
3 import java.lang.annotation.Retention JavaDoc;
4 import java.lang.annotation.RetentionPolicy JavaDoc;
5
6 import spoon.aval.Validator;
7 import spoon.aval.annotation.structure.AValTarget;
8 import spoon.aval.annotation.structure.Requires;
9 import spoon.reflect.declaration.CtAnnotationType;
10 /**
11  * Meta annotation that gives the implementation for a validator.
12  *
13  */

14 @Retention JavaDoc(RetentionPolicy.RUNTIME)
15 @AValTarget(CtAnnotationType.class)
16 @Requires(value=Retention JavaDoc.class,message="AValidator annotations should have a Retention Policy of RUNTIME")
17 public @interface Implementation {
18     
19     /**
20      * Contains the Validator that implements this meta-annotation
21      * @see spoon.aval.Validator
22      */

23     Class JavaDoc<? extends Validator> value();
24 }
25
Popular Tags