aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs169/pr287613/DAMethod2.java
blob: 600a662517776236d86574bcd6273c5c85654e4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@interface Annot {}

@Retention(RetentionPolicy.RUNTIME)
@interface Foo {}

class Person {
	@Foo
	public void foo() {}
	@Foo
	public boolean bar() {return false;}
	@Foo
	public String getString() { return null; }
	@Foo
	public boolean isSet() { return false; }
	@Foo
	public void isNotReturningBoolean() { }

	public void getin() {}
}

aspect DAMethod2 {

    declare @method: !(* *.get*()) && !(* aspectOf(..)) && !(* hasAspect(..)): @Annot;
    
    declare @method: !@Foo * *(..) && !(* aspectOf(..)) && !(* hasAspect(..)): @Annot;
}