mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-15 14:13:28 +02:00
25 lines
540 B
Java
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;
|
|
*/
|
|
}
|