org.quilt.cover.stmt
Class MethodAction

java.lang.Object
  |
  +--org.quilt.cover.stmt.MethodAction
All Implemented Interfaces:
MethodXformer

public class MethodAction
extends java.lang.Object
implements MethodXformer

Process a MethodGen method before and after graph creation and manipulation. A QuiltClassLoader 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

Constructor Summary
MethodAction()
           
MethodAction(StmtRegistry reg)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodAction

public MethodAction()

MethodAction

public MethodAction(StmtRegistry reg)
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.

Specified by:
preGraph in interface MethodXformer

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.

Specified by:
postGraph in interface MethodXformer

getName

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

Specified by:
getName in interface MethodXformer

setName

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

Specified by:
setName in interface MethodXformer


Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.