| java.lang.Object org.quilt.cover.stmt.ClassAction
ClassAction | public class ClassAction implements org.quilt.cl.ClassXformer(Code) | | Add instrumentation at the class level, creating <clinit>
if necessary. Three fields are added and initialized:
- q$$q, the int[] hit counts array
- q$$qID, a class identifier unique within this run
- q$$qStmtReg, reference to the StmtRegistry
- q$$qVer, a Quilt class file format version
All of these fields are public final static. They are
initialized by clinit when the class is loaded,
running bytecode inserted by Quilt.
author: Jim Dixon |
Method Summary | |
public String | getName() Get the preprocessor's report name. | public void | postMethods(ClassGen clazz) Postprocessor applied to the class after looking at methods. | public void | preMethods(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.
This is a preprocessor applied to the class before looking at
methods. | public void | setClassTransformer(ClassTransformer ct) Passes a reference to the controlling ClassTransformer.
XXX Inelegant - and unnecessary. | public void | setName(String name) Set the preprocessor's name for reports. |
clinitExists | boolean clinitExists(Code) | | Does a static initializer class exist?
|
clinitIndex | int clinitIndex(Code) | | Its index in the method array.
|
ClassAction | public ClassAction()(Code) | | |
getName | public String getName()(Code) | | Get the preprocessor's report name.
|
postMethods | public void postMethods(ClassGen clazz)(Code) | | Postprocessor applied to the class after looking at methods.
These will be applied in reverse order after completion of
method processing.
|
preMethods | public void preMethods(ClassGen clazz)(Code) | | 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.
This is a preprocessor applied to the class before looking at
methods. Any such preprocessors will be applied in the order of
the ClassXformer vector.
Parameters: clazz - ClassGen for the class being transformed. |
setClassTransformer | public void setClassTransformer(ClassTransformer ct)(Code) | | Passes a reference to the controlling ClassTransformer.
XXX Inelegant - and unnecessary. XXX REWORK TO USED stmtReg
|
setName | public void setName(String name)(Code) | | Set the preprocessor's name for reports.
|
|
|