Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] help on pointcuts weaving

Hi,
     I'm not sure if this is what you are looking to do, but the * wildcard does NOT match . (periods).  .. (2 periods) mathces ALL characters.  If you are looking for Package.Subpackage.Class.Method but you only know the Package and Subpackage you could use call( Package.Subpackage..*(..)) Notice the 2 periods (..) after Subpackage.  So for you it might be call(public * Socket.getInetAddress..*(..)).

Hope this is helpful!
Tyler
 
On Wed, Jun 25, 2008 at 6:41 AM, Neeraja Maniyani <neeraja.maniyani@xxxxxxxxx> wrote:
Hi,
 
I tried using this
 
call(public * Socket.getInetAddress(..))&& withincode(public * InetAddress.getLocalHost(..));
 
but it still doesnot weave in the advice.
 
thanks.

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top