org.objectweb.jac.wrappers
Class VerboseWrapper
java.lang.Object
org.objectweb.jac.core.Wrapper
org.objectweb.jac.wrappers.VerboseWrapper
- All Implemented Interfaces:
- Advice, ConstructorInterceptor, Interceptor, MethodInterceptor, Serializable
- public class VerboseWrapper
- extends Wrapper
This wrapper prints some informations about the wrapped method when
it is called.
- See Also:
- Serialized Form
Fields inherited from class org.objectweb.jac.core.Wrapper |
ac, cr |
TIMED
public static final int TIMED
- See Also:
- Constant Field Values
NAMED
public static final int NAMED
- See Also:
- Constant Field Values
STACK
public static final int STACK
- See Also:
- Constant Field Values
WRAPPERS
public static final int WRAPPERS
- See Also:
- Constant Field Values
type
protected int type
VerboseWrapper
public VerboseWrapper(AspectComponent ac,
int type)
printCallingInfos
public Object printCallingInfos(Interaction interaction)
- A wrapping method that prints out the calling informations.
- Returns:
- the value of the called method
printNamedArgs
public Object printNamedArgs(Interaction interaction)
printStackTrace
public Object printStackTrace(Interaction interaction)
printWrappersTrace
public Object printWrappersTrace(Interaction interaction)
invoke
public Object invoke(MethodInvocation invocation)
throws Throwable
- Specified by:
invoke
in interface MethodInterceptor
- Overrides:
invoke
in class Wrapper
- Throws:
Throwable
construct
public Object construct(ConstructorInvocation invocation)
throws Throwable
- Specified by:
construct
in interface ConstructorInterceptor
- Overrides:
construct
in class Wrapper
- Throws:
Throwable