Home » Language IDEs » AspectJ » How to programmatically create an aspect AST ?
How to programmatically create an aspect AST ? [message #55270] |
Tue, 19 July 2005 09:27  |
Eclipse User |
|
|
|
Originally posted by: tu.plaisantes.haha.com
Hi all,
We are using JDT DOM AST API to create Java elements. We now would like
to use the same kind of stuff to generate aspects. Is there something
that allows this ?
Thanks in advance !
Thierry
|
|
| |
Re: How to programmatically create an aspect AST ? [message #55325 is a reply to message #55298] |
Fri, 22 July 2005 08:05   |
Eclipse User |
|
|
|
Originally posted by: tu.plaisantes.haha.com
Matt Chapman wrote:
> On Tue, 19 Jul 2005 15:27:29 +0200, Thierry Monney wrote:
>
>>We are using JDT DOM AST API to create Java elements. We now would like
>>to use the same kind of stuff to generate aspects. Is there something
>>that allows this ?
>
>
> Hi Thierry,
>
> I don't believe this is yet possible. Please see the following bug:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=88861
> There's not much info in the bug - maybe you could add some details of
> exactly what you're looking for in this area?
>
> Regards,
>
> Matt.
>
Hi Matt,
Indeed the bug is related, thanks for pointing it out.
What we are trying to do is create aspects from UML-like models. Our
tool already generates Java classes and interfaces from these models and
we would like to generate aspects the same way to implement concerns
such as Distribution, Transactions, Security, ... added to the models.
So what we would need is an API similar to that of JDT DOM AST. That
would mean classes for PointcutDefinition, Advice, Aspect, ... and
classes for manipulation of these elements (similar to AST, ASTRewrite,
.... of JDT).
I think these additions would be useful for aspect-manipulation tools,
even inside AJDT itself (I am thinking of refactoring for instance).
Anyway, for our project we will probably fall back to template-based
code generation tools.
Thank you for the answer and for that great tool !
Regards,
Thierry.
|
|
|
Re: How to programmatically create an aspect AST ? [message #59893 is a reply to message #55325] |
Tue, 27 December 2005 04:26   |
Eclipse User |
|
|
|
Originally posted by: zifu.yang.gmail.com
I'm wondering if we can do this now?
This message was half year ago.
Any progress on this point?
"Thierry Monney" <tu.plaisantes@haha.com> wrote in message
news:dbqnc8$cmo$1@news.eclipse.org...
> Matt Chapman wrote:
>> On Tue, 19 Jul 2005 15:27:29 +0200, Thierry Monney wrote:
>>
>>>We are using JDT DOM AST API to create Java elements. We now would like
>>>to use the same kind of stuff to generate aspects. Is there something
>>>that allows this ?
>>
>>
>> Hi Thierry,
>>
>> I don't believe this is yet possible. Please see the following bug:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=88861
>> There's not much info in the bug - maybe you could add some details of
>> exactly what you're looking for in this area?
>>
>> Regards,
>>
>> Matt.
>>
>
> Hi Matt,
>
> Indeed the bug is related, thanks for pointing it out.
>
> What we are trying to do is create aspects from UML-like models. Our tool
> already generates Java classes and interfaces from these models and we
> would like to generate aspects the same way to implement concerns such as
> Distribution, Transactions, Security, ... added to the models.
>
> So what we would need is an API similar to that of JDT DOM AST. That would
> mean classes for PointcutDefinition, Advice, Aspect, ... and classes for
> manipulation of these elements (similar to AST, ASTRewrite, ... of JDT).
>
> I think these additions would be useful for aspect-manipulation tools,
> even inside AJDT itself (I am thinking of refactoring for instance).
>
> Anyway, for our project we will probably fall back to template-based code
> generation tools.
>
> Thank you for the answer and for that great tool !
>
> Regards,
>
> Thierry.
|
|
| | | |
Re: How to programmatically create an aspect AST ? [message #589549 is a reply to message #55298] |
Fri, 22 July 2005 08:05  |
Eclipse User |
|
|
|
Matt Chapman wrote:
> On Tue, 19 Jul 2005 15:27:29 +0200, Thierry Monney wrote:
>
>>We are using JDT DOM AST API to create Java elements. We now would like
>>to use the same kind of stuff to generate aspects. Is there something
>>that allows this ?
>
>
> Hi Thierry,
>
> I don't believe this is yet possible. Please see the following bug:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=88861
> There's not much info in the bug - maybe you could add some details of
> exactly what you're looking for in this area?
>
> Regards,
>
> Matt.
>
Hi Matt,
Indeed the bug is related, thanks for pointing it out.
What we are trying to do is create aspects from UML-like models. Our
tool already generates Java classes and interfaces from these models and
we would like to generate aspects the same way to implement concerns
such as Distribution, Transactions, Security, ... added to the models.
So what we would need is an API similar to that of JDT DOM AST. That
would mean classes for PointcutDefinition, Advice, Aspect, ... and
classes for manipulation of these elements (similar to AST, ASTRewrite,
.... of JDT).
I think these additions would be useful for aspect-manipulation tools,
even inside AJDT itself (I am thinking of refactoring for instance).
Anyway, for our project we will probably fall back to template-based
code generation tools.
Thank you for the answer and for that great tool !
Regards,
Thierry.
|
|
|
Re: How to programmatically create an aspect AST ? [message #591499 is a reply to message #55325] |
Tue, 27 December 2005 04:26  |
Eclipse User |
|
|
|
Originally posted by: zifu.yang.gmail.com
I'm wondering if we can do this now?
This message was half year ago.
Any progress on this point?
"Thierry Monney" <tu.plaisantes@haha.com> wrote in message
news:dbqnc8$cmo$1@news.eclipse.org...
> Matt Chapman wrote:
>> On Tue, 19 Jul 2005 15:27:29 +0200, Thierry Monney wrote:
>>
>>>We are using JDT DOM AST API to create Java elements. We now would like
>>>to use the same kind of stuff to generate aspects. Is there something
>>>that allows this ?
>>
>>
>> Hi Thierry,
>>
>> I don't believe this is yet possible. Please see the following bug:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=88861
>> There's not much info in the bug - maybe you could add some details of
>> exactly what you're looking for in this area?
>>
>> Regards,
>>
>> Matt.
>>
>
> Hi Matt,
>
> Indeed the bug is related, thanks for pointing it out.
>
> What we are trying to do is create aspects from UML-like models. Our tool
> already generates Java classes and interfaces from these models and we
> would like to generate aspects the same way to implement concerns such as
> Distribution, Transactions, Security, ... added to the models.
>
> So what we would need is an API similar to that of JDT DOM AST. That would
> mean classes for PointcutDefinition, Advice, Aspect, ... and classes for
> manipulation of these elements (similar to AST, ASTRewrite, ... of JDT).
>
> I think these additions would be useful for aspect-manipulation tools,
> even inside AJDT itself (I am thinking of refactoring for instance).
>
> Anyway, for our project we will probably fall back to template-based code
> generation tools.
>
> Thank you for the answer and for that great tool !
>
> Regards,
>
> Thierry.
|
|
| | |
Goto Forum:
Current Time: Wed May 28 19:38:45 EDT 2025
Powered by FUDForum. Page generated in 0.03669 seconds
|