Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Exclusion of synthetic methods

Hi William,

Want to raise a bugzilla for that? I can't immediately think of a
reason not to do it.

Andy

On 14 October 2010 11:33, William Louth (JINSPIRED.COM)
<william.louth@xxxxxxxxxxxxx> wrote:
> It looks like ModifiersPattern needs to be updated.
>
> static {
>         modifierFlags = new HashMap<String, Integer>();
>         int flag = 1;
>         while (flag <= Modifier.STRICT) {
>             String flagName = Modifier.toString(flag);
>             modifierFlags.put(flagName, new Integer(flag));
>             flag = flag << 1;
>         }
>     }
>
>
> public static final int STRICT           = 0x00000800;
>
>     // Bits not (yet) exposed in the public API either because they
>     // have different meanings for fields and methods and there is no
>     // way to distinguish between the two in this class, or because
>     // they are not Java programming language keywords
>     static final int BRIDGE    = 0x00000040;
>     static final int VARARGS   = 0x00000080;
>     static final int SYNTHETIC = 0x00001000;
>     static final int ANNOTATION= 0x00002000;
>     static final int ENUM      = 0x00004000;
>     static boolean isSynthetic(int mod) {
>       return (mod & SYNTHETIC) != 0;
>     }
>
>
> On 14/10/2010 17:59, William Louth (JINSPIRED.COM) wrote:
>
>  Is it possible to use "synthetic" as a valid modifier label in a pointcut?
> Any specification of this modifier results in a parser exception. Maybe I am
> missing something.
>
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


Back to the top