aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental/pr121384/base/moodytest/AnnotationMoodIndicator.java
blob: 6872077e983443af6d0f5a7289b55d00a8a2a528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package moodytest;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.DeclareParents;

@Aspect
public class AnnotationMoodIndicator {
  public interface Moody {
     Mood getMood();
     void setMood(Mood mood);
  }

  public static class MoodyImpl implements Moody {
     Mood mood = Mood.HAPPY;

     public Mood getMood() { return mood; }
     public void setMood(Mood mood) { this.mood = mood; }
  }

  @DeclareParents(value="moodytest.AnnotationMoodyImplementor",defaultImpl=MoodyImpl.class)
  private Moody introduced;
}