01: package org.codehaus.aspectwerkz.annotation;
02:
03: import java.lang.annotation.Target;
04: import java.lang.annotation.ElementType;
05: import java.lang.annotation.Retention;
06: import java.lang.annotation.RetentionPolicy;
07: import java.lang.annotation.Annotation;
08: import java.lang.reflect.Modifier;
09:
10: @Target({ElementType.METHOD,ElementType.FIELD})
11: @Retention(RetentionPolicy.RUNTIME)
12: public @interface Within {
13: int modifiers() default Modifier.PRIVATE | Modifier.PROTECTED; // FIXME: etc.
14:
15: Class<? extends Annotation>[] annotations() default Null.class;
16:
17: Class type() default Null.class;
18:
19: // anonymous = Annotations only
20: Class<? extends Annotation>[] value() default Null.class;
21: }
|