blob: 85684e18af15045ea49c38270cfae4bd49ec0e85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME) @interface Fruit { String value();}
public aspect DecaTypeBin4 {
declare @type: AnnotatedType : @Fruit("Banana");
}
aspect X {
before(): execution(* *(..)) && @this(Color) {
System.err.println("Color identified on "+thisJoinPoint);
}
before(): execution(* *(..)) && @this(Fruit) {
System.err.println("Fruit identified on "+thisJoinPoint);
}
}
|