Interface CodeLocator

All Superinterfaces:

public interface CodeLocator
extends Locator

This interface represents a locator on a base program piece of code.

The AOP Alliance implementation provider should provide code locators implementations in order to support several kinds of code locators (e.g. as the ones used in the Code interface).

The AOP Alliance client program gets the locator by navigating the base program metamodel (using the org.aopalliance.reflect package) and using the get...Locator(...) methods.

Code locators are quite different from unit locators.

See Also:
Code, Code.getLocator(), Code.getCallLocator(Method), Code.getReadLocator(Field), Code.getWriteLocator(Field), Code.getThrowLocator(Class), Code.getCatchLocator(Class), Method.getCallLocator(), UnitLocator