Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] DefaultPointcut

Hi,

If i'm not mistaken this is not implemented yet. Improvements of the
AST module are being covered by bug 110465:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=110465

If you want to try modifying aspectj source code to accomplish that,
take a look (as a starting point) at the following classes:
------------------------------------------------------------------------------------
[1] org.aspectj.org.eclipse.jdt.core.dom.AjASTConverter:
------------------------------------------------------------------------------------
It is an internal class for converting internal compiler ASTs into
public ASTs. In this class the conversion from:
'org.aspectj.ajdt.internal.compiler.ast.PointcutDeclaration' to
'org.aspectj.org.eclipse.jdt.core.dom.PointcutDeclaration' occurs.
Search for the following method: public ASTNode
convert(PointcutDeclaration pointcutDeclaration) {...}
------------------------------------------------------------------------------------
[2] org.aspectj.org.eclipse.jdt.core.dom.MethodDeclaration:
------------------------------------------------------------------------------------
This class contains code that manipulate method's parameters. You
could use this class as a template to implement the same funcionality
in 'org.aspectj.org.eclipse.jdt.core.dom.PointcutDeclaration'.
------------------------------------------------------------------------------------

Regards,
Eduardo Piveta
hhtp://www.inf.ufrgs.br/~epiveta

On 11/21/05, Irum Godil <softwarengineer2004@xxxxxxxxx> wrote:
> Hi,
> I am looking at the class PointcutDesignator and DefaultPointcut. I do not
> see any representation of parameters for pointcut. So if I have:
> pointcut(String a): target(a);
>
> the getDetails() API returns "target(a)", but there is no way to get the
> parameter part. Has this been implemented?
>
>
>
>
> Thanks a lot,
> Sincerely,
> Irum Godil.
> www.cs.utoronto.ca/~irum
>
>
>  ________________________________
>  Yahoo! FareChase - Search multiple travel sites in one click.
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
>


Back to the top