KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > emn > info > eaop > instrumentation > Instrumentation


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.instrumentation;
8
9 import fr.emn.info.eaop.IO;
10
11 import recoder.*;
12 import recoder.kit.*;
13 import recoder.service.*;
14 import recoder.java.*;
15 import recoder.java.declaration.*;
16
17
18 /**
19  * Base class for instrumentation transformations used to factor out common
20  * functionality from the individual transformations.
21  *
22  * @author MS
23  * @version 1.0
24  */

25 public class Instrumentation extends Transformation {
26     public static final String JavaDoc
27     constructorDummyTypeStr = "ConstructorDummyType";
28
29     static final String JavaDoc origStr = "_Original";
30
31     protected JavaProgramFactory pf = (JavaProgramFactory) getProgramFactory();
32
33     protected CrossReferenceSourceInfo si =
34     (CrossReferenceSourceInfo) getCrossReferenceSourceInfo();
35
36     protected CompilationUnit cu = null;
37     protected TypeDeclaration td = null;
38
39     public Instrumentation(CrossReferenceServiceConfiguration sc,
40                CompilationUnit cu,
41                TypeDeclaration td) {
42     super(sc);
43     this.cu = cu;
44     this.td = td;
45     }
46
47     static String JavaDoc getOrigStr() { return origStr; }
48 }
49
50
Popular Tags