Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » How to programmatically create an aspect AST ?
How to programmatically create an aspect AST ? [message #55270] Tue, 19 July 2005 13:27 Go to next message
Eclipse UserFriend
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 #55298 is a reply to message #55270] Thu, 21 July 2005 12:08 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to programmatically create an aspect AST ? [message #55325 is a reply to message #55298] Fri, 22 July 2005 12:05 Go to previous messageGo to next message
Eclipse UserFriend
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 09:26 Go to previous messageGo to next message
Eclipse UserFriend
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 #59952 is a reply to message #59893] Thu, 29 December 2005 21:23 Go to previous messageGo to next message
Eclipse UserFriend
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.

I just found that bug though, that may be of help:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=110465

Hope that helps.

Thierry.
Re: How to programmatically create an aspect AST ? [message #60095 is a reply to message #59952] Tue, 03 January 2006 11:45 Go to previous message
Eclipse UserFriend
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.

There is now bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=110465
which is open to cover the remaining work. This bug was raised with the
comment:

> 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
Re: How to programmatically create an aspect AST ? [message #589538 is a reply to message #55270] Thu, 21 July 2005 12:08 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
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
Re: How to programmatically create an aspect AST ? [message #589549 is a reply to message #55298] Fri, 22 July 2005 12:05 Go to previous message
Thierry Monney is currently offline Thierry MonneyFriend
Messages: 10
Registered: July 2009
Junior Member
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 09:26 Go to previous message
Eclipse UserFriend
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 #591520 is a reply to message #59893] Thu, 29 December 2005 21:23 Go to previous message
Thierry Monney is currently offline Thierry MonneyFriend
Messages: 10
Registered: July 2009
Junior Member
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.

I just found that bug though, that may be of help:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=110465

Hope that helps.

Thierry.
Re: How to programmatically create an aspect AST ? [message #591579 is a reply to message #59952] Tue, 03 January 2006 11:45 Go to previous message
Eclipse UserFriend
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.

There is now bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=110465
which is open to cover the remaining work. This bug was raised with the
comment:

> 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
Previous Topic:can I change build.ajproperties 's default location?
Next Topic:Internationalization - any more translations?
Goto Forum:
  


Current Time: Sat Dec 20 11:37:04 GMT 2014

Powered by FUDForum. Page generated in 0.05818 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software