net.sf.jour.instrumentor
Class AbstractInstrumentor

java.lang.Object
  extended bynet.sf.jour.instrumentor.AbstractInstrumentor
All Implemented Interfaces:
Instrumentor
Direct Known Subclasses:
ExceptionCatcherInstrumentor, InstanceCounterInstrumentor, MethodExecutionTimeInstrumentor, ProfilerInstrumentor

public abstract class AbstractInstrumentor
extends java.lang.Object
implements Instrumentor

TODO Add docs Contributing Author(s): Misha Lifschitz (Inital implementation) Vlad Skarzhevskyy (Inital implementation)

Version:
$Revision: 1.6 $ ($Author: vlads $) $Date: 2004/12/13 06:19:10 $
Author:
michaellif

Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
protected AbstractInstrumentor()
          Creates a new AbstractInstrumentor object.
 
Method Summary
 long getCountCounstructors()
           
 long getCountMethods()
           
 boolean instrument(javassist.CtClass clazz)
          DOCUMENT ME!
(package private) abstract  boolean instrumentClass(javassist.CtClass clazz)
          DOCUMENT ME!
(package private) abstract  boolean instrumentConstructor(javassist.CtClass clazz, javassist.CtConstructor constructor)
          DOCUMENT ME!
(package private) abstract  boolean instrumentMethod(javassist.CtClass clazz, javassist.CtMethod method)
          DOCUMENT ME!
 void setPointcuts(PointcutListFilter pointcuts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

AbstractInstrumentor

protected AbstractInstrumentor()
Creates a new AbstractInstrumentor object.

Method Detail

instrument

public boolean instrument(javassist.CtClass clazz)
                   throws InterceptorException
DOCUMENT ME!

Specified by:
instrument in interface Instrumentor
Parameters:
clazz - DOCUMENT ME!
Returns:
Returns true if any modification has been made to the class.
Throws:
InterceptorException - DOCUMENT ME!

getCountCounstructors

public long getCountCounstructors()
Specified by:
getCountCounstructors in interface Instrumentor
Returns:
Returns the countCounstructors.

getCountMethods

public long getCountMethods()
Specified by:
getCountMethods in interface Instrumentor
Returns:
Returns the countMethods.

setPointcuts

public void setPointcuts(PointcutListFilter pointcuts)
Specified by:
setPointcuts in interface Instrumentor

instrumentClass

abstract boolean instrumentClass(javassist.CtClass clazz)
                          throws InterceptorException
DOCUMENT ME!

Parameters:
clazz - DOCUMENT ME!
Throws:
InterceptorException - DOCUMENT ME!

instrumentMethod

abstract boolean instrumentMethod(javassist.CtClass clazz,
                                  javassist.CtMethod method)
                           throws InterceptorException
DOCUMENT ME!

Parameters:
clazz - DOCUMENT ME!
method - DOCUMENT ME!
Throws:
InterceptorException - DOCUMENT ME!

instrumentConstructor

abstract boolean instrumentConstructor(javassist.CtClass clazz,
                                       javassist.CtConstructor constructor)
                                throws InterceptorException
DOCUMENT ME!

Parameters:
clazz - DOCUMENT ME!
constructor - DOCUMENT ME!
Throws:
InterceptorException - DOCUMENT ME!


Copyright © 2004 sourceforge. All Rights Reserved.