org.jxcl.cl
Interface MethodXformer

All Known Implementing Classes:
CEGSpy, IListSpy

public interface MethodXformer

Process a MethodGen method before and after graph creation and manipulation. A JXClassLoader can have any number of such pre/post-processors. The preprocessors will be applied in order before graph generation and then the postprocessors will be applied in reverse order after graph manipulation is complete. If any fatal errors occur, transformers must issue a warning message on System.err and either undo any changes or set method to null.

Author:
Jim Dixon

Method Summary
 java.lang.String getName()
          Get the report name for method processor.
 void postGraph(org.apache.bcel.generic.ClassGen clazz, org.apache.bcel.generic.MethodGen method)
          Process method after graph generation and manipulation is complete.
 void preGraph(org.apache.bcel.generic.ClassGen clazz, org.apache.bcel.generic.MethodGen method)
          Apply processing to method before graph is generated.
 void setName(java.lang.String name)
          Assign a name to the method processor.
 

Method Detail

preGraph

public void preGraph(org.apache.bcel.generic.ClassGen clazz,
                     org.apache.bcel.generic.MethodGen method)
Apply processing to method before graph is generated.


postGraph

public void postGraph(org.apache.bcel.generic.ClassGen clazz,
                      org.apache.bcel.generic.MethodGen method)
Process method after graph generation and manipulation is complete.


getName

public java.lang.String getName()
Get the report name for method processor.


setName

public void setName(java.lang.String name)
Assign a name to the method processor.