Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Defining a pointcut selecting no joinpoints.

try

  pointcut empty();


Wes

Daniel McAllansmith wrote:
Hi,

is there a special pointcut syntax which is defined to select no joinpoints at
all?

I'm writing a concrete extension of an abstract aspect and want to ensure that
an inherited abstract pointcut will not match any joinpoints.

I used 'if (false)' but that's a bit ugly, and it seems that the current
compiler (1.1.1) doesn't appear to optimise it out.
I could use something like cflowbelow && !cflow but that's even uglier.

Thanks
Daniel

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users




Back to the top