Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] AspectJ for Statements

Hello,

Is it possible to create pointcuts to keywords such as 'if', 'while' or 'for'?

For example, I have the following source code:

    while (a < b) {
       // block 1
       if (c < d) {
          // block 2
       } else {
          // block 3
       }
    }

Now I want to know how often block 1-3 are executed. Is this possible in 
AspectJ?

Thank you very much.

best regards,
Klaus Lehner


Back to the top