org.objectweb.jac.aspects.tracing
Class DebuggingWrapper
java.lang.Object
|
+--org.objectweb.jac.core.Wrapper
|
+--org.objectweb.jac.aspects.tracing.DebuggingWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
- public class DebuggingWrapper
- extends Wrapper
This wrapper upcalls the debugger when a method that have to be
debugged is called and returns.
- See Also:
Debugger,
Serialized Form
| Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
debugger
public Debugger debugger
- The actual debugger.
DebuggingWrapper
public DebuggingWrapper(AspectComponent ac)
- The wrapper constructor.
- Parameters:
ac - the aspect that manages this wrapper
step
public Object step(Interaction interaction)
- This wrapping method is used to upcall the debugger at each
method call.
- Returns:
- the return value of the orginal method
- See Also:
Debugger.startOfMethod(String,String,String,Object[]),
Debugger.endOfMethod(String,String,String,Object[],Object,long)
invoke
public Object invoke(MethodInvocation invocation)
throws Throwable
- Specified by:
invoke in interface MethodInterceptor- Overrides:
invoke in class Wrapper
Throwable
construct
public Object construct(ConstructorInvocation invocation)
throws Throwable
- Specified by:
construct in interface ConstructorInterceptor- Overrides:
construct in class Wrapper
Throwable