|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.quilt.cover.stmt.ClassAction
Add instrumentation at the class level, creating <clinit> if necessary. Three fields are added and initialized:
clinit
when the class is loaded,
running bytecode inserted by Quilt.
Constructor Summary | |
ClassAction()
|
|
ClassAction(StmtRegistry reg)
|
Method Summary | |
java.lang.String |
getName()
Get the preprocessor's report name. |
void |
postMethods(org.apache.bcel.generic.ClassGen clazz)
Postprocessor applied to the class after looking at methods. |
void |
preMethods(org.apache.bcel.generic.ClassGen clazz)
Add a q$$q hit count field to the class using public static int [] q$$q; If there is already a field of this name, do not instrument the class. |
void |
setClassTransformer(ClassTransformer ct)
Passes a reference to the controlling ClassTransformer. |
void |
setName(java.lang.String name)
Set the preprocessor's name for reports. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassAction()
public ClassAction(StmtRegistry reg)
Method Detail |
public void setClassTransformer(ClassTransformer ct)
setClassTransformer
in interface ClassXformer
public void preMethods(org.apache.bcel.generic.ClassGen clazz)
preMethods
in interface ClassXformer
clazz
- ClassGen for the class being transformed.public void postMethods(org.apache.bcel.generic.ClassGen clazz)
postMethods
in interface ClassXformer
public java.lang.String getName()
getName
in interface ClassXformer
public void setName(java.lang.String name)
setName
in interface ClassXformer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |