[aspectc-user] construction(...) and whithin(...)

Miguel Almeida mvieira at fe.ucp.pt
Mon May 30 13:33:09 CEST 2005


Hi.

 

I’m trying to create an advice activated by a construction within a certain
class.

 

Class A {

            ...

}

 

Class B {

            void foo() {

                        A _a;

            }

            //or

            A _a_;

}

 

//My advice:

 

advice construction(“A”) && within(“B”) {...}

 

//I also tried:

 

advice construction(“A”) && within(“% B::%(
)”) {...}

 

None of this seems to work. Am I doing something wrong?

 

Thanks

 

Miguel Almeida

 

Miguel Vieira de Campos Almeida

mvieira at fe.ucp.pt

Faculdade de Engenharia

Universidade Católica Portuguesa

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20050530/c2c593a7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3024 bytes
Desc: not available
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20050530/c2c593a7/attachment.bin>


More information about the aspectc-user mailing list