Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] Fwd: metacomments and aspectj - need suggestion

Thank you, I will read about it

23 октября 2009 г. 4:12 пользователь Andrew Eisenberg <andrew@xxxxxxxxxxxx> написал:
Hi there,

The ajc compiler was not designed to be extensible by end users.  Its
focus has is efficiency and stability.  However, the AspectBench
compiler is designed for extensibility and for testing out new ideas.
This might be more suitable to your purposes.

http://abc.comlab.ox.ac.uk/introduction

2009/10/22 Sergey Staroletov <sergey.staroletov@xxxxxxxxx>:
> Hello. I'm doing my first step research in AspectJ because I am thinking
> that one feature in it will help me in my big research project. I want to
> try to extend aspectj language to process my  special  comments (non-java
> doc, just single-line or multi-line user comments) in java files with
> aspectj weaving. In my idea It will be as:
>
> in aj file (added new word 'comment')
>
> pointcut point(String s) : comment(s);
>
> long before(String s) : point(s) {
>
> System.out.println(s) ;
>
> }
>
>
>
> in java file
>
> System.out.println("start") ;
>
> //comment here
>
> System.out.println("stop") ;
>
>
>
> and sample result
>
>
>
> start
>
> comment here
>
> stop
>
> I am thinking that instruction to process comment will be inserting between
> code line before comment and code line after comment
>
> It is possible to realize by myself and where can i find the develper
> documentation? (And what shall I do to patch existing code (I've downloaded
> AJT source to my Eclipse, built and tried to debug this - but I'm lost my
> way) ?
>
>
> --
> С уважением, Старолетов Сергей
>
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>
>
_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-dev



--
С уважением, Старолетов Сергей

Back to the top