|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jcoverage.coverage.InstrumentClassGen
class InstrumentClassGen
Add coverage instrumentation to an existing class. Instances of this class are normally created by @see Instrument, as part of the instrumentation process.
| Field Summary | |
|---|---|
(package private) org.apache.bcel.generic.ClassGen |
cg
|
(package private) java.lang.String |
ignoreRegex
|
(package private) static org.apache.log4j.Logger |
logger
|
(package private) java.util.Map |
methodConditionals
A mapping from method name and signature to the set of conditionals for that method. |
(package private) java.util.Map |
methodLineNumbers
A mapping from method name and signature to the set of line numbers for that method. |
(package private) java.util.Set |
methodNamesAndSignatures
The set of method names concatenated with their signature. |
(package private) java.util.Set |
sourceLineNumbers
The set of "real" source line numbers that are present in this class. |
| Constructor Summary | |
|---|---|
InstrumentClassGen(org.apache.bcel.classfile.JavaClass jc,
java.lang.String ignoreRegex)
|
|
| Method Summary | |
|---|---|
(package private) void |
addInstrumentation()
Add coverage instrumentation to the class. |
(package private) void |
addInstrumentation(org.apache.bcel.classfile.Method method)
Add instrumentation to a method found in this class. |
(package private) void |
addInstrumentation(org.apache.bcel.classfile.Method[] methods)
Add instrument to all the supplied methods. |
(package private) org.apache.bcel.generic.ClassGen |
getClassGen()
|
(package private) java.util.Map |
getMethodConditionals()
|
(package private) java.util.Map |
getMethodLineNumbers()
|
(package private) java.util.Set |
getMethodNamesAndSignatures()
|
(package private) java.util.Set |
getSourceLineNumbers()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final org.apache.log4j.Logger logger
final org.apache.bcel.generic.ClassGen cg
final java.util.Set sourceLineNumbers
final java.util.Set methodNamesAndSignatures
final java.util.Map methodLineNumbers
final java.util.Map methodConditionals
Conditionalfinal java.lang.String ignoreRegex
| Constructor Detail |
|---|
InstrumentClassGen(org.apache.bcel.classfile.JavaClass jc,
java.lang.String ignoreRegex)
| Method Detail |
|---|
void addInstrumentation(org.apache.bcel.classfile.Method method)
method - a method present in the classvoid addInstrumentation(org.apache.bcel.classfile.Method[] methods)
void addInstrumentation()
org.apache.bcel.generic.ClassGen getClassGen()
java.util.Set getSourceLineNumbers()
java.util.Map getMethodLineNumbers()
java.util.Map getMethodConditionals()
Conditionaljava.util.Set getMethodNamesAndSignatures()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||