Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] if and loop pointcuts

		Hello!
		
  Is there any way to express in AspectJ the fact that the control flow is 
inside an if statement or a loop (while, for) statement?
  
  I am thinking here about the possibility to detect when a field is accessed 
(read or written) inside an if (or loop) statement:
  
  For example, to define a pointcut:
  
  pointcut access_a_inside_if(): (get(int a) || set(int a)) && 
cflow(if_statement);
  
  
      Thank you for any help,
      
         Regards,
           Diana.
  		



Back to the top