Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Capture classes with final fields

I activated the option "allow hasmethod() and hasfield() type patterns in
declare parents and declare @type" . This is the only option i could find. 
But still i get errors when i try to use hasfield(...). 
Can you please give an example of how i can use it?

Thank you

 

Eric Bodden-2 wrote:
> 
> No, it exists for AspectJ. Just enable the corresponding option in the
> project options. I believe it is on the "AspectJ Compiler" tab.
> 
> Eric
> 
> On 09/06/07, Chrys <zampas@xxxxxxxxx> wrote:
>>
>> Yes but isn't that for AspetWerkz? I am using eclipse 3.2.2 with adt
>> 1.4.2.
>> Can i use this pointcut?
>>
>>
>>
>> Eric Bodden-2 wrote:
>> >
>> > There are hasField(...) pointcuts that you can enable with an -X
>> > option to the compiler.
>> >
>> > Eric
>> >
>> > On 08/06/07, Chrys <zampas@xxxxxxxxx> wrote:
>> >>
>> >> Hello. I want to implement a pointcut that gets all classes that have
>> >> only
>> >> final fields.
>> >> I thought something like
>> >>
>> >> pointcut finalFieldsClasses() :
>> >>                 (set(final * *.*.*)
>> >>                 ||  get(final * *.*.*));
>> >>
>> >> but this pointcut will also capture classes that have final and non
>> final
>> >> fields.
>> >>
>> >> Regards
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Capture-classes-with-final-fields-tf3889906.html#a11026785
>> >> Sent from the AspectJ - users mailing list archive at Nabble.com.
>> >>
>> >> _______________________________________________
>> >> aspectj-users mailing list
>> >> aspectj-users@xxxxxxxxxxx
>> >> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>> >>
>> >
>> >
>> > --
>> > Eric Bodden
>> > Sable Research Group
>> > McGill University, Montréal, Canada
>> > _______________________________________________
>> > aspectj-users mailing list
>> > aspectj-users@xxxxxxxxxxx
>> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Capture-classes-with-final-fields-tf3889906.html#a11039740
>> Sent from the AspectJ - users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
> 
> 
> -- 
> Eric Bodden
> Sable Research Group
> McGill University, Montréal, Canada
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Capture-classes-with-final-fields-tf3889906.html#a11057364
Sent from the AspectJ - users mailing list archive at Nabble.com.



Back to the top