Is there any way to define a pointcut in AspectJ that would pick out each method directly executed by a specified method?
For example if there is a parentMethod() in classA that looks like:
public void parentMethod() {
classB.methodX();
classC.methodY();
}
I want to define a pointcut that uses just the information about parentMethod to pick out whenever its invoked methods, methodX() and methodY(), are executed. Is there a way to achieve this using AspectJ pointcuts?