Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Withincode pointcut??

Hi everyone!
 
Could somebody explain me why the pointcut withincode can match only against the following join points:
 
method-call
field-set
constructor-call
field-get
exception-handler
constructor-execution
preinitialization
initialization
 
and not on execution-method also!?? Why Constructor-execution and not method execution??
 
For example:

withincode(public static void Main.f()) && execution(public static void Main.f()) 

Doesn't match but for the execution of public static void Main.f().

whereas

withincode(Main.new()) && execution(Main.new()) matches against execution of Main constructor.

 

Thank you very much!


Back to the top