дзеркало
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 17:58:43 +02:00
16 рядки
377 B
Java
16 рядки
377 B
Java
|
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
|
||
|
}
|