edu.ucsb.ccs.jcontractor.transformation
Class MarkInstrumentedTransformation

java.lang.Object
  |
  +--edu.ucsb.ccs.jcontractor.transformation.Transformation
        |
        +--edu.ucsb.ccs.jcontractor.transformation.MarkInstrumentedTransformation

public class MarkInstrumentedTransformation
extends Transformation

A transformation to insert a flag constant into the constant pool of a class to mark the class as instrumented. This constant consists of jInstrument.JCONTRACTOR_FLAG_CONSTANT concatenated with the class name.

Version:
$Id: $
Author:
Parker Abercrombie

Constructor Summary
MarkInstrumentedTransformation()
           
 
Method Summary
 boolean acceptClass()
          Determine if this transform should be applied to a class.
 void transformClass()
          Insert the flag constant into the constant pool.
 void transformMethod(org.apache.bcel.generic.MethodGen mg)
          Does nothing.
 
Methods inherited from class edu.ucsb.ccs.jcontractor.transformation.Transformation
getTransformer, setTransformer, transform
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkInstrumentedTransformation

public MarkInstrumentedTransformation()
Method Detail

acceptClass

public boolean acceptClass()
Determine if this transform should be applied to a class. Always returns true.

Overrides:
acceptClass in class Transformation
Returns:
true

transformClass

public void transformClass()
Insert the flag constant into the constant pool.

Overrides:
transformClass in class Transformation

transformMethod

public void transformMethod(org.apache.bcel.generic.MethodGen mg)
Does nothing.

Overrides:
transformMethod in class Transformation