Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] AspectJ <--> AspectWerkz translator

Hi Alex,

I'm looking for a tool that can translate between one syntax and the other on the fly (as long as it's syntactically correct).  It's for a proof of concept tool that allows a programmer to view and edit a different (and presumably better) representation of the code than actually exists in the file.

I pretty much have the  AW->AJ part working.  That's easy.  The only non-trivial part of the translation is the @Mixin annotation.  It's the other way around that's more tricky.  I'm pretty sure that I can hack out something that works most of the time, but it'll be extremely difficult to get something that's perfect.


thanks,
--a

Date: Wed, 13 Jul 2005 09:20:52 +0200
From: Alexandre Vasseur <avasseur@xxxxxxxxx>
Subject: Re: [aspectj-users] AspectJ <--> AspectWerkz translator
To: aspectj-users@xxxxxxxxxxx
Message-ID: <9aface8705071300202ba22fbf@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

Hi Andrew

Good point indeed.

I don't think we as the core team will ship that but there are a
number of things in the pipe:
- translating from AW to AJ will be straightforward for annotation
defined aspects, a bit more complex for xml defined aspects. I plan to
write a how-to about that soon (*)
- translating from AJ to AW does not makes much sense. Do you have a use > case ?
- translating from AJ code style to AJ 5 @AspectJ style back and forth
makes sense and is a good way to see where code style features could
not be mirrored to annotation style whilst preserving a "aspect and
advised types can be compiled with regular javac" property.
AJDT may provide a flip view that does that, and as @AspectJ becomes
available we will also write about it much more (*)

(*) : So why nothing to read about that yet ? Because @AspectJ ie
annotation style aspects will be available in AspectJ 5 M3, that will
ship soon. I want to base my writings on a milestones backed by some
AJDT build, and not only talk or write about what is on the cvs or in
nightly builds.

Have you already given a try to such a translation yourself ? What did
you spotted ?

Alex



Back to the top