diff options
Diffstat (limited to 'tests/java5/compliance/AJ5FeaturesAtJ14.aj')
-rw-r--r-- | tests/java5/compliance/AJ5FeaturesAtJ14.aj | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/java5/compliance/AJ5FeaturesAtJ14.aj b/tests/java5/compliance/AJ5FeaturesAtJ14.aj new file mode 100644 index 000000000..bc344f86b --- /dev/null +++ b/tests/java5/compliance/AJ5FeaturesAtJ14.aj @@ -0,0 +1,32 @@ +public aspect AJ5FeaturesAtJ14 { + + pointcut p1() : @annotation(Foo); + + pointcut p2() : @this(Foo); + + pointcut p3() : @target(Foo); + + pointcut p4() : @args(Foo); + + pointcut p5() : @within(Foo); + + pointcut p6() : @withincode(Foo); + + declare @type : Bar : @Foo; + + declare @method : * *.main() : @Foo; + + declare @field : * main : @Foo; + + declare @constructor : Bar.new(..) : @Foo; + + // annotations within type and signature patterns... + + pointcut p7() : execution(@Foo * *(..)); + + declare parents : (@Foo *) extends Bar; +} + +class Foo {} + +class Bar {}
\ No newline at end of file |