Package org.aopalliance.reflect
Interface Method
-
- All Superinterfaces:
Member
,ProgramUnit
public interface Method extends Member
This represents a method of a class.
-
-
Field Summary
-
Fields inherited from interface org.aopalliance.reflect.Member
PROVIDER_SIDE, USER_SIDE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Code
getBody()
Returns the body of the current method.CodeLocator
getCallLocator()
This locator contains all the points in the program that call this method.CodeLocator
getCallLocator(int side)
A full version ofgetCallLocator()
.-
Methods inherited from interface org.aopalliance.reflect.Member
getDeclaringClass, getModifiers, getName
-
Methods inherited from interface org.aopalliance.reflect.ProgramUnit
addMetadata, getLocator, getMetadata, getMetadatas, removeMetadata
-
-
-
-
Method Detail
-
getCallLocator
CodeLocator getCallLocator()
This locator contains all the points in the program that call this method.Note that this code locator corresponds to the client-side call event (equiv. to
this.getLocator(USER_SIDE)
. To get the server-side equivalent locator, one must writethis.getBody().getLocator()
orthis.getLocator(PROVIDER_SIDE)
.It is a very invasive feature since it designates all the calling points in all the classes of the application. To only designate the calling points in a given client method, one should write
aClientMethod.getBody().getCallLocator(this)
.- See Also:
Code.getLocator()
,Code.getCallLocator(Method)
-
getCallLocator
CodeLocator getCallLocator(int side)
A full version ofgetCallLocator()
.- Parameters:
side
- USER_SIDE || PROVIDER_SIDE- See Also:
getCallLocator()
-
getBody
Code getBody()
Returns the body of the current method.
-
-