KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > TestInstrumentation


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 import fr.emn.info.eaop.instrumentation.*;
8
9 import recoder.abstraction.*;
10 import recoder.java.declaration.*;
11
12 public class TestInstrumentation extends SelectiveInstrumentation {
13     public TestInstrumentation() {
14     files = new String JavaDoc[3];
15     files[0] = "Base.java";
16     files[1] = "Aspects.java";
17     files[2] = "Test.java";
18     }
19
20     protected boolean checkMethodOrConstructor(MethodDeclaration md) {
21     this.md = md; // store method declaration for called methods
22

23     return (matchMethodName("f") ||
24         matchMethodName("g") ||
25         matchMethodName("h"))
26         && !isSystemMethodOrConstructor();
27     }
28 }
29
30
Popular Tags