KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > emn > info > eaop > aspect > Seq


1 /* ----------------------------------------------------------------------------
2  * EAOP 1.0, 2002-12-19
3  * (c) 2002 Remi Douence, Mario Sudholt; OBASCO group; EMN/INRIA; France
4  * THIS SOFTWARE IS PROVIDED AS IS AND WITHOUT ANY WARRANTY
5   -------------------------------------------------------------------------- */

6
7 package fr.emn.info.eaop.aspect;
8
9 import fr.emn.info.eaop.Monitor;
10
11 import java.util.*;
12 import java.lang.reflect.*;
13 import java.io.*;
14
15 /**
16  * This class implements binary nodes in the tree of aspects. The two
17  * aspects are composed sequentially (see definition of the method
18  * <code>go()</code>)
19  *
20  * @author RD
21  * @version 1.0
22  */

23
24 public class Seq extends BinaryAspectS {
25
26     public Seq(AspectS a1, AspectS a2) {
27     this(a1, a2, null);
28     }
29     public Seq(AspectS a1, AspectS a2, AspectS up) {
30     super(a1, a2, up);
31     }
32     public void go() {
33     Monitor.monitor.path.push(this);
34     this.a1.go();
35     this.a2.go();
36     this.isCrosscutting = this.a1.isCrosscutting || this.a2.isCrosscutting;
37     Monitor.monitor.path.pop();
38     }
39 }
40
41
Popular Tags