|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Instrumentor
The Instrumentor is responsible transforming a Clazz.
The same Instrumentor can be used for compiletime instrumentation and loadtime instrumentation, so no worries about that anymore.
| Method Summary | |
|---|---|
void |
exclude(java.lang.String ignored)
|
java.io.File |
getDumpDirectory()
|
java.lang.String |
getExcluded()
Returns a string containing all |
java.lang.String |
getIncluded()
|
java.lang.String |
getName()
Returns the name of this Instrumentor. |
java.lang.String |
getStmName()
Returns the name of the Stm this Instrumentor is going to do the instrumentation for. |
java.lang.String |
getVersion()
Returns the version of this Instrumentor. |
void |
include(java.lang.String included)
Add a pattern that is included. |
Clazz |
process(Clazz originalClazz)
Processes a clazz. |
void |
setDumpBytecode(boolean dumpBytecode)
If the bytecode generated by this Instrumentor should be dumped for debugging purposes. |
void |
setDumpDirectory(java.io.File dumpDirectory)
Sets the location of this Instrumentor. |
void |
setFiler(Filer filer)
Sets the Filer for this Instrumentor. |
void |
setLog(InstrumenterLogger logger)
Sets the InstrumenterLogger this Instrumentor uses to execute log statements on. |
void |
setOptimize(boolean optimize)
|
| Method Detail |
|---|
java.lang.String getName()
getVersion()java.lang.String getVersion()
getName()java.lang.String getStmName()
void setFiler(Filer filer)
filer - the filer this Instrumentor is going to use.void setDumpBytecode(boolean dumpBytecode)
dumpBytecode - true if bytecode should be dumpted.setDumpDirectory(java.io.File)void setDumpDirectory(java.io.File dumpDirectory)
dumpDirectory - the directory to write the dumped classfiles to.java.io.File getDumpDirectory()
void setLog(InstrumenterLogger logger)
logger - void include(java.lang.String included)
included - void exclude(java.lang.String ignored)
java.lang.String getExcluded()
java.lang.String getIncluded()
Clazz process(Clazz originalClazz)
originalClazz - the Clazz to transform.
CompileException - if something goes wrong while compile clazz.void setOptimize(boolean optimize)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||