All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aopalliance.reflect.Method Maven / Gradle / Ivy

There is a newer version: 8.16.0
Show newest version

package org.aopalliance.reflect;

/**
 * This represents a method of a class. */

public interface Method extends Member {

   /**
    * 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 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). * * @see Code#getLocator() * @see Code#getCallLocator(Method) */ CodeLocator getCallLocator(); /** * A full version of {@link #getCallLocator()}. * * @param side USER_SIDE || PROVIDER_SIDE * @see #getCallLocator() */ CodeLocator getCallLocator(int side); /** * Returns the body of the current method. */ Code getBody(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy