net.sf.jour
Class Interceptor

java.lang.Object
  extended bynet.sf.jour.Interceptor

public class Interceptor
extends java.lang.Object

TODO add docs. Created on 02.10.2004 Contributing Author(s): Misha Lifschitz (Inital implementation) Vlad Skarzhevskyy (Inital implementation)

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

Field Summary
(package private)  java.lang.String className
          DOCUMENT ME!
(package private)  Instrumentor[] instrumentors
          DOCUMENT ME!
(package private)  boolean modified
          Flag any modification to class.
(package private)  javassist.ClassPool pool
          DOCUMENT ME!
 
Constructor Summary
Interceptor(javassist.ClassPool pool, java.lang.String className, Instrumentor[] instrumentors)
          Creates a new Interceptor object.
 
Method Summary
 long getCountCounstructors()
           
 long getCountMethods()
           
 javassist.CtClass instrument()
          DOCUMENT ME!
 byte[] instrument(byte[] bytes)
          DOCUMENT ME!
 boolean isModified()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pool

javassist.ClassPool pool
DOCUMENT ME!


className

java.lang.String className
DOCUMENT ME!


instrumentors

Instrumentor[] instrumentors
DOCUMENT ME!


modified

boolean modified
Flag any modification to class.

Constructor Detail

Interceptor

public Interceptor(javassist.ClassPool pool,
                   java.lang.String className,
                   Instrumentor[] instrumentors)
            throws InterceptorException
Creates a new Interceptor object.

Parameters:
pool - DOCUMENT ME!
className - DOCUMENT ME!
instrumentors - DOCUMENT ME!
Throws:
InterceptorException - DOCUMENT ME!
Method Detail

instrument

public byte[] instrument(byte[] bytes)
                  throws InterceptorException
DOCUMENT ME!

Parameters:
bytes - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
InterceptorException - DOCUMENT ME!

instrument

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

Returns:
DOCUMENT ME!
Throws:
InterceptorException - DOCUMENT ME!

isModified

public boolean isModified()
Returns:
Returns true if any modification has been made to the class.

getCountCounstructors

public long getCountCounstructors()
Returns:
Returns the countCounstructors.

getCountMethods

public long getCountMethods()
Returns:
Returns the countMethods.


Copyright © 2004 sourceforge. All Rights Reserved.