|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.core.AspectComponent
org.objectweb.jac.aspects.tracing.TracingAC
This sample aspect component traces the calls on all the objects of the program.
To be active this aspect component must be configured with the
addTrace
method.
VerboseWrapper
,
Serialized FormField Summary |
Fields inherited from class org.objectweb.jac.core.AspectComponent |
application, blockKeywords, cr, currentConfigMethod, currentImports, firstCall, NOT_SHARED, SHARED, startWeavingCCount, startWeavingCount, startWeavingMethod, startWeavingType, systemListener, wrappers |
Fields inherited from interface org.objectweb.jac.core.BaseProgramListener |
FOUND_OBJECT |
Constructor Summary | |
TracingAC()
|
Method Summary | |
void |
addCounter(String name,
String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method makes all the matching methods invocations to be counted. |
void |
addNamedTrace(String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method makes a method call to be traced. |
void |
addOptimizedCounter(String name,
String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr,
String fieldName,
String argNumber)
This configuration method makes all the matching methods invocations to be counted in an optimized fashion. |
void |
addRecording(String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method creates a new recording on a set of methods. |
void |
addStackTrace(String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method makes a method call to be traced by a verbose wrapper. |
void |
addTrace(String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method makes a method call to be traced by a verbose wrapper. |
void |
addWrappersTrace(String wrappeeExpr,
String wrappeeClassExpr,
String wrappeeMethodExpr)
This configuration method makes a method call to be traced by a verbose wrapper. |
boolean |
beforeRunningWrapper(Wrapper wrapper,
String wrappingMethod)
Skips the counting wrapper if this call is part of a global conting optimization performed by an OptimizedCountingWrapper |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TracingAC()
Method Detail |
public void addTrace(String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
TracingConf
addTrace
in interface TracingConf
wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be tracedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
tracedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be traced (within the classes or objects denoted by
the previous parameters)VerboseWrapper
public void addNamedTrace(String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
TracingConf
addNamedTrace
in interface TracingConf
wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be tracedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
tracedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be traced (within the classes or objects denoted by
the previous parameters)VerboseWrapper
public void addStackTrace(String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
TracingConf
addStackTrace
in interface TracingConf
wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be tracedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
tracedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be traced (within the classes or objects denoted by
the previous parameters)VerboseWrapper
public void addWrappersTrace(String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
TracingConf
addWrappersTrace
in interface TracingConf
wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be tracedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
tracedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be traced (within the classes or objects denoted by
the previous parameters)VerboseWrapper
public void addRecording(String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
TracingConf
addRecording
in interface TracingConf
wrappeeExpr
- a pointcut expression that matches the
wrappee(s) name(s) that contain the method(s) to be tracedwrappeeClassExpr
- a pointcut expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
tracedwrappeeMethodExpr
- a pointcut expression that matches the
method(s) to be traced (within the classes or objects denoted by
the previous parameters)public void addCounter(String name, String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr)
TracingConf
addCounter
in interface TracingConf
name
- the name of the counter that is used (can be
shared)wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be countedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
countedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be counted (within the classes or objects denoted
by the previous parameters)SimpleCountingWrapper
public void addOptimizedCounter(String name, String wrappeeExpr, String wrappeeClassExpr, String wrappeeMethodExpr, String fieldName, String argNumber)
TracingConf
addOptimizedCounter
in interface TracingConf
name
- the name of the counter that is used (can be
shared)wrappeeExpr
- a regular expression that matches the
wrappee(s) name(s) that contain the method(s) to be countedwrappeeClassExpr
- a regular expression that matches the
wrappee(s) class(es) name(s) that contain the method(s) to be
countedwrappeeMethodExpr
- a regular expression that matches the
method(s) to be counted (within the classes or objects denoted
by the previous parameters)fieldName
- the name of the field that is used to optimize
the counting (the counter is incremented with its value), an
empty string has no effectargNumber
- the argument's index that is used to optimize
the counting (the counter is incremented with its value), an
empty string has no effectOptimizedCountingWrapper
public boolean beforeRunningWrapper(Wrapper wrapper, String wrappingMethod)
OptimizedCountingWrapper
beforeRunningWrapper
in interface BaseProgramListener
beforeRunningWrapper
in class AspectComponent
wrapper
- the wrapperwrappingMethod
- the wrapping method that is about to be
run
OptimizedCountingWrapper
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |