org.aspectj/tests/features153/pipelining/annotations/AnAspect.java

16 lignes
377 B
Java
Brut Vue normale Historique

2006-07-26 17:01:31 +02:00
import java.lang.annotation.*;
public aspect AnAspect {
declare @type: Foo: @SimpleAnnotation(id=5); // one type in an array
declare @type: Foo: @AnnotationClassElement(clz=Integer.class); // one type not in an array
before(): call(* (@SimpleAnnotation *).m(..)) {
}
// declare @type: Foo: @AnnotationStringElement(stringval="www"); // two types in an array
}