Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#81 Add support for AspectJ

open
nobody
None
5
2002-09-18
2002-09-18
Vincent Massol
No

Hi,

How hard is it to add support for AspectJ extension to
java?

I am starting to write quite a few Aspects and I'd like to
add some custom tag to generate some stuff. Here's
an example:

public abstract aspect AbstractSopTestAspect
{
/**
* @template
maven.patterntesting.java.sop.applicationCode
*/
public abstract pointcut applicationCode();
[...]
}

That would generate the following source file:

public aspect SopTestAspect extends
AbstractSopTestAspect
{
public pointcut applicationCode() :
@maven.patterntesting.java.sop.applicationCode@;
}

But to implement this, I would need xdoclet to support
the aspectj extension, right?

Thanks
-Vincent

Discussion

  • Ara Abrahamian
    Ara Abrahamian
    2002-09-18

    Logged In: YES
    user_id=205271

    Interesting FR! Currently xjavadoc work with a java
    grammar file. But we can add a parser factory layer (like
    jaxp) and plug in different grammars. Probably xjavadoc
    classes such as XClass and it's subclasses such as
    SourceClass and BinaryClass should also be
    subclassed (AspectJSourceClass). It's doable. In fact
    we had a request to support C++ too! So a parser factory
    is probably a good idea. Due to our plans and the
    upcoming refactoring I think no one in our team will have
    enough time to do the whole thing. We (either me or Aslak)
    can do the parser factory layer and leave writing the
    aspectj grammar file to someone else (you? :-)
    ).

    Ara.

     
  • Vincent Massol
    Vincent Massol
    2002-09-18

    Logged In: YES
    user_id=22169

    Hi Ara,

    The factory makes sense...

    I wish I could help you! I have just started a new project
    (PatternTesting) and I am already completely swamped...
    There's no more hours left available in the night... all used
    already... :-)

    I hope someone else might be interested by the idea... !

    Thanks
    -Vincent