|
||||||||||
| 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 |
addExcluded(java.lang.String ignored)
|
void |
addIncluded(java.lang.String included)
Add a pattern that is included. |
java.io.File |
getDumpDirectory()
|
java.lang.String |
getInstrumentorName()
Returns the name of this Instrumentor. |
java.lang.String |
getInstrumentorVersion()
Returns the version of this Instrumentor. |
java.lang.String |
getStmName()
Returns the name of the Stm this Instrumentor is going to do the instrumentation for. |
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)
|
void |
setResolver(Resolver resolver)
|
| Method Detail |
|---|
java.lang.String getInstrumentorName()
getInstrumentorVersion()java.lang.String getInstrumentorVersion()
getInstrumentorName()java.lang.String getStmName()
void setFiler(Filer filer)
filer - the filer this Instrumentor is going to use.void setResolver(Resolver resolver)
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 addIncluded(java.lang.String included)
included - void addExcluded(java.lang.String ignored)
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 | |||||||||