Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to programmatically create an aspect AST ?
https://www.eclipse.org/forums/index.php/mv/msg/17252/55270/#msg_55270
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]]>2005-07-19T13:27:29-00:00Re: How to programmatically create an aspect AST ?
https://www.eclipse.org/forums/index.php/mv/msg/17252/55298/#msg_55298
Originally posted by: mchapman.uk.ibm.com
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.
--
Matt Chapman
AJDT Development, http://www.eclipse.org/ajdt]]>2005-07-21T12:08:21-00:00Re: How to programmatically create an aspect AST ?
https://www.eclipse.org/forums/index.php/mv/msg/17252/589538/#msg_589538
> 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.
--
Matt Chapman
AJDT Development, http://www.eclipse.org/ajdt]]>Matt Chapman2005-07-21T12:08:21-00:00Re: How to programmatically create an aspect AST ?
https://www.eclipse.org/forums/index.php/mv/msg/17252/55325/#msg_55325
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.]]>2005-07-22T12:05:23-00:00Re: How to programmatically create an aspect AST ?
https://www.eclipse.org/forums/index.php/mv/msg/17252/589549/#msg_589549
> 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.]]>Thierry Monney2005-07-22T12:05:23-00:00Re: How to programmatically create an aspect AST ?
https://www.eclipse.org/forums/index.php/mv/msg/17252/591499/#msg_591499
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.]]>2005-12-27T09:26:54-00:00Re: How to programmatically create an aspect AST ?
https://www.eclipse.org/forums/index.php/mv/msg/17252/59893/#msg_59893
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.]]>2005-12-27T09:26:54-00:00Re: How to programmatically create an aspect AST ?
https://www.eclipse.org/forums/index.php/mv/msg/17252/59952/#msg_59952
Originally posted by: tu.plaisantes.haha.com
Zifu Yang wrote:
> I'm wondering if we can do this now?
> This message was half year ago.
> Any progress on this point?
Nothing that I am aware of. But I have not looked at it for a long time.
Maybe AspectJ/AJDT guys can help more.
Thierry.]]>2005-12-29T21:23:35-00:00Re: How to programmatically create an aspect AST ?
https://www.eclipse.org/forums/index.php/mv/msg/17252/591520/#msg_591520
> I'm wondering if we can do this now?
> This message was half year ago.
> Any progress on this point?
Nothing that I am aware of. But I have not looked at it for a long time.
Maybe AspectJ/AJDT guys can help more.
Thierry.]]>Thierry Monney2005-12-29T21:23:35-00:00Re: How to programmatically create an aspect AST ?
https://www.eclipse.org/forums/index.php/mv/msg/17252/60095/#msg_60095
Originally posted by: hawkinsh.uk.ibm.com
Some of this exists now - the original bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=88861 was closed because a
lot of the required infrastructure is in place (classes for
PointcutDefinition etc) and some of the AST.
> If anyone has a particular use case that they need to get working, please
> mention it in this bug and we'll raise the priority of 'that piece' of the
> AST.
Please add a comment on this bug as to the functionality you require and
we'll work on it there.
Thanks, Helen]]>2006-01-03T11:45:01-00:00Re: How to programmatically create an aspect AST ?
https://www.eclipse.org/forums/index.php/mv/msg/17252/591579/#msg_591579
Originally posted by: hawkinsh.uk.ibm.com
Some of this exists now - the original bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=88861 was closed because a
lot of the required infrastructure is in place (classes for
PointcutDefinition etc) and some of the AST.
> If anyone has a particular use case that they need to get working, please
> mention it in this bug and we'll raise the priority of 'that piece' of the
> AST.
Please add a comment on this bug as to the functionality you require and
we'll work on it there.