class InstrumentClassGen extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(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 and Description |
---|
InstrumentClassGen(org.apache.bcel.classfile.JavaClass jc,
java.lang.String ignoreRegex) |
Modifier and Type | Method and Description |
---|---|
(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() |
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
Conditional
final java.lang.String ignoreRegex
InstrumentClassGen(org.apache.bcel.classfile.JavaClass jc, java.lang.String ignoreRegex)
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()
Conditional
java.util.Set getMethodNamesAndSignatures()