korat.instrumentation
Class CompoundInstrumenter

java.lang.Object
  extended by korat.instrumentation.AbstractInstrumenter
      extended by korat.instrumentation.CompoundInstrumenter
All Implemented Interfaces:
IInstrumenter

 class CompoundInstrumenter
extends AbstractInstrumenter

Instrumenter that consists of several other instrumenters. The result of the instrumentation is equal to the result of the sequential instrumentation of all the contained instrumenters (Composite design pattern).

Author:
Aleksandar Milicevic

Field Summary
private  List<AbstractInstrumenter> instrumenters
           
 
Fields inherited from class korat.instrumentation.AbstractInstrumenter
cp
 
Constructor Summary
CompoundInstrumenter()
           
 
Method Summary
 boolean add(AbstractInstrumenter instr)
           
protected  void instrument(CtClass clz)
           
 boolean remove(AbstractInstrumenter instr)
           
 
Methods inherited from class korat.instrumentation.AbstractInstrumenter
getBytecode, shouldProcessField, shouldProcessMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instrumenters

private List<AbstractInstrumenter> instrumenters
Constructor Detail

CompoundInstrumenter

public CompoundInstrumenter()
Method Detail

add

public boolean add(AbstractInstrumenter instr)

remove

public boolean remove(AbstractInstrumenter instr)

instrument

protected void instrument(CtClass clz)
                   throws CannotCompileException,
                          NotFoundException,
                          IOException
Specified by:
instrument in class AbstractInstrumenter
Throws:
CannotCompileException
NotFoundException
IOException