public interface Method extends Member
PROVIDER_SIDE, USER_SIDE
Modifier and Type | Method and 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 of
getCallLocator() . |
getDeclaringClass, getModifiers, getName
addMetadata, getLocator, getMetadata, getMetadatas, removeMetadata
CodeLocator getCallLocator()
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 write
this.getBody().getLocator()
or
this.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)
.
Code.getLocator()
,
Code.getCallLocator(Method)
CodeLocator getCallLocator(int side)
getCallLocator()
.side
- USER_SIDE || PROVIDER_SIDEgetCallLocator()
Code getBody()