KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quilt > cl > ClassXformer


1 /* ClassXformer.java */
2 package org.quilt.cl;
3
4 import org.apache.bcel.generic.ClassGen;
5
6 /**
7  * Application-specific pre- and post-processors for Quilt classes.
8  * There may be any number of these.
9  *
10  * If pre/post-processors encounter fatal errors, they must issue
11  * a warning message to System.err and either undo or set clazz to null.
12  *
13  * @author < a HREF="jddixon@users.sourceforge.net">Jim Dixon</a>
14  */

15
16 public interface ClassXformer {
17
18     public void setClassTransformer (ClassTransformer ct);
19
20     /**
21      * Preprocessor applied to the class before looking at methods.
22      * Any such preprocessors will be applied in the order of
23      * the ClassXformer vector.
24      */

25     public void preMethods( ClassGen clazz );
26
27     /**
28      * Postprocessor applied to the class after looking at methods.
29      * These will be applied in reverse order after completion of
30      * method processing.
31      */

32     public void postMethods (ClassGen clazz );
33
34     /** Get the preprocessor's report name. */
35     public String JavaDoc getName();
36
37     /** Set the preprocessor's name for reports. */
38     public void setName(String JavaDoc name);
39 }
40
Popular Tags