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
|
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkInstrumentedTransformation
public MarkInstrumentedTransformation()
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