AspectJ join point with simple types

Posted by Jon on Stack Overflow See other posts from Stack Overflow or by Jon
Published on 2010-05-28T16:19:55Z Indexed on 2010/05/28 16:21 UTC
Read the original article Hit count: 219

Filed under:
|
|

Hi!

Are there defined join points in arithmetics that I can catch?

Something like:

int a = 4;
int b = 2;
int c = a + b;

Can I make a pointcut that catches any one of those lines? And what context will I be able to get?

I would like to add a before() to all int/float/double manipulation done in a particular method on a class, is that possible.

I see in the AspectJ docs that there are defined join points for object initialization and method calls. Is declaring an int an object initialization and does the + operator count as a method call?

Thanks!

© Stack Overflow or respective owner

Related posts about int

Related posts about aspectj