org.aspectj/tests/bugs169/pr287613/DeclareAnnotMethodCtor.java
2010-06-18 22:11:06 +00:00

25 lines
540 B
Java

import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@interface Annot {}
class Person {}
aspect DeclareAnnot {
declare @constructor: (Person.new()) || (Person.new(*)) : @Annot;
// declare @method: (* *.get*()) && (boolean *.is*()): @Annot;
/*
declare @field: String *.* && boolean *.* : @Annot;
declare @constructor: Person.new() && Person.new(*) : @Annot;
declare @method: !(* *.get*()): @Annot;
declare @field: !(String *.*) : @Annot;
declare @constructor: !(Person.new()) : @Annot;
*/
}