|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.nanning.Mixin.InvocationImpl
| Field Summary | |
protected java.lang.Object[] |
args
|
protected java.util.ListIterator |
interceptors
|
protected java.lang.reflect.Method |
method
|
protected java.lang.Object |
proxy
|
| Constructor Summary | |
Mixin.InvocationImpl(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
|
| Method Summary | |
java.lang.Object[] |
getArgs()
Gets the arguments to the call. |
java.lang.Object |
getArgument(int arg)
|
int |
getArgumentCount()
|
AspectInstance |
getAspectInstance()
|
int |
getCurrentIndex()
Gets the index of the current interceptor. |
int |
getfInterceptorCount()
Gets the total number of interceptors in the chain. |
Interceptor |
getInterceptor(int index)
Gets the interceptors at the specified index. |
java.lang.reflect.Method |
getMethod()
Gets the method being called. |
java.lang.Object |
getProxy()
Gets the aspected object the call is part of. |
java.lang.Object |
getTarget()
Gets the target of the call. |
java.lang.Class |
getTargetInterface()
|
java.lang.Object |
invokeNext()
Invoke the next interceptor in the stack (or the target if you're last). |
void |
setTarget(java.lang.Object target)
Change the target of the current mixin. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.Object proxy
protected final java.lang.reflect.Method method
protected final java.lang.Object[] args
protected java.util.ListIterator interceptors
| Constructor Detail |
public Mixin.InvocationImpl(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
| Method Detail |
public java.lang.Object invokeNext()
throws java.lang.Throwable
Invocation
invokeNext in interface Invocationjava.lang.Throwable - if the call throws an exception.public Interceptor getInterceptor(int index)
Invocation
getInterceptor in interface Invocationindex - index to the interceptor to retrieve.
public java.lang.Class getTargetInterface()
getTargetInterface in interface Invocationpublic AspectInstance getAspectInstance()
getAspectInstance in interface Invocationpublic int getArgumentCount()
getArgumentCount in interface Invocationpublic java.lang.Object getArgument(int arg)
getArgument in interface Invocationpublic java.lang.Object getTarget()
Invocation
getTarget in interface Invocationpublic void setTarget(java.lang.Object target)
Invocation
setTarget in interface Invocationtarget - public java.lang.Object getProxy()
Invocation
getProxy in interface Invocationpublic int getCurrentIndex()
Invocation
getCurrentIndex in interface Invocationpublic int getfInterceptorCount()
Invocation
getfInterceptorCount in interface Invocationpublic java.lang.reflect.Method getMethod()
Invocation
getMethod in interface Invocationpublic java.lang.Object[] getArgs()
Invocation
getArgs in interface Invocation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||