Short answer, no.
most pointcut definitions can only be bound to method invocations, which sadly ++
is not. you may be able to use a cflow
style pointcut, but that would bind to every instruction execution, and would not pick out the ++
. if you must use aspectj, then a better approach would be to use a Counter
class with an increment method. or if you are not bound to aspectj, then using ASM, for static analysis, you should be able to pick out the bytecode iinc
which i think is usually used in for loops, and insert custom bytecode to call and inform your custom aspect of the increment.