|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.tracing.ClassTracingInjector
public class ClassTracingInjector
Takes care to add Tracing to the methods.
| Constructor Summary | |
|---|---|
ClassTracingInjector(ClassNode cn,
boolean java5,
boolean pai)
|
|
| Method Summary | |
|---|---|
String |
getClassName()
|
void |
getClassNameOnStack(InsnList cmd)
Load the class name reference to the stack. |
ClassNode |
getClassNode()
|
void |
getStaticLoggerOnStack(InsnList cmd)
|
void |
inject(TracingInjector.Matcher matcher)
Injects logging to all methods that match the given matcher. |
void |
injectStaticLoggerMember(InsnList cmd)
Injects the static logger member and takes care for the static initialization. |
boolean |
isJava5()
|
boolean |
isPai()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassTracingInjector(ClassNode cn,
boolean java5,
boolean pai)
cn - java5 - pai - | Method Detail |
|---|
public void inject(TracingInjector.Matcher matcher)
matcher - the matcher to identify methods to inject.public ClassNode getClassNode()
public String getClassName()
public void getStaticLoggerOnStack(InsnList cmd)
cmd - public void getClassNameOnStack(InsnList cmd)
cmd - the instruction list where to add the command to.public void injectStaticLoggerMember(InsnList cmd)
cmd - the command list to add the code to.public boolean isJava5()
public boolean isPai()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||