|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MethodJoinpoint
The thisJoinPoint keyword availabe in JAsCo aspects is of type MethodJoinpoint, this means that all subsequent methods are availabe for this keyword. thisJoinPoint refers to the method joinpoint that triggered the aspect.
Method Summary | |
---|---|
java.lang.Class[] |
getActualArgumentTypes()
Returns the actual argument types |
java.lang.annotation.Annotation[] |
getAnnotations()
Returns all defined annotations |
java.lang.Object[] |
getArgumentsArray()
Returns an array of all arguments |
java.lang.Object |
getCalledObject()
Returns the object the method is invoked upon |
java.lang.ClassLoader |
getClassLoader()
Returns the classLoader responsible for loading this joinpoint. |
java.lang.String |
getClassName()
Returns the fully quantified name of class the method is declared |
java.lang.Class[] |
getExceptionTypes()
Returns java.lang.reflect.class objects denoting types of exceptions thrown by this method |
java.lang.String[] |
getFormalArgumentTypeNames()
returns array of full class names of formal arguments |
java.lang.Class[] |
getFormalArgumentTypes()
Returns the formal argument types |
java.lang.String |
getFullName()
Deprecated. use getSignature instead |
int |
getModifiers()
Returns the modifiers intger, see java.lang.reflect.Modifier |
java.lang.String |
getName()
Returns the method name |
java.lang.Class |
getReturnType()
Returns java.lang.reflect.class object denoting the return type of this method |
java.lang.String |
getReturnTypeName()
returns full class name of return type |
java.lang.String |
getSignature()
Returns the unique name for this method joinpoint |
java.lang.Object |
invoke(java.lang.Object obj,
java.lang.Object[] args)
Invokes the replaced method or subsequent around advices, only availabe in around advice |
java.lang.Object |
invokeAgain()
Allows to invoke the original method all over again with original arguments. |
java.lang.Object |
invokeAgain(java.lang.Object calledobject,
java.lang.Object[] args)
Allows to invoke the original method all over again. |
java.lang.Object |
invokeJAsCoMethod()
Invokes the replaced method or subsequent around advices with original arguments, only availabe in around advice. |
java.lang.Object |
invokeNoAspectAgain()
Allows to invoke the original method again with original arguments. |
java.lang.Object |
invokeOriginal(java.lang.Object obj,
java.lang.Object[] args)
Invokes the original method, only availabe in around advice. |
java.lang.Object |
invokeOriginalJAsCoMethod()
Invokes the original method with original arguments, only availabe in around advice. |
boolean |
isCall()
Returns true when this method joinpoint is a call joinpoint |
boolean |
isExecution()
Returns true when this method joinpoint is an execution joinpoint |
java.lang.Class |
loadClass()
Loads this class |
Method Detail |
---|
java.lang.Class[] getExceptionTypes()
java.lang.Class getReturnType()
java.lang.String getFullName()
java.lang.String getSignature()
boolean isExecution()
boolean isCall()
java.lang.String getName()
java.lang.Class loadClass()
java.lang.annotation.Annotation[] getAnnotations()
java.lang.Class[] getActualArgumentTypes()
java.lang.Class[] getFormalArgumentTypes()
java.lang.String getClassName()
int getModifiers()
java.lang.Object[] getArgumentsArray()
java.lang.Object getCalledObject()
java.lang.Object invokeJAsCoMethod() throws java.lang.Exception
ProceedFinishedException
- proceed was previously invoked and all advices and original method already executed.
java.lang.Exception
java.lang.Object invokeOriginalJAsCoMethod() throws java.lang.Exception
java.lang.Exception
java.lang.Object invoke(java.lang.Object obj, java.lang.Object[] args) throws java.lang.Exception
obj
- The object to invoke the method upon, is typically thisJoinPointObject keywordargs
- The arguments to invoke the proceed chain with.
ProceedFinishedException
- proceed was previously invoked and all advices and original method already executed.
java.lang.Exception
java.lang.Object invokeOriginal(java.lang.Object obj, java.lang.Object[] args) throws java.lang.Exception
obj
- The object to invoke the method upon, is typically thisJoinPointObject keywordargs
- The arguments to invoke the original method with.
java.lang.Exception
java.lang.Object invokeAgain() throws java.lang.Exception
java.lang.Exception
java.lang.Object invokeAgain(java.lang.Object calledobject, java.lang.Object[] args) throws java.lang.Exception
calledobject
- The object to invoke the method upon, is typically thisJoinPointObject keywordargs
- The arguments to invoke the original method with.
java.lang.Exception
java.lang.Object invokeNoAspectAgain() throws java.lang.Exception
java.lang.Exception
java.lang.ClassLoader getClassLoader()
java.lang.String getReturnTypeName()
java.lang.String[] getFormalArgumentTypeNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |