Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] inherits from?

Ted,

I believe one of the following should work:

	pointcut changeSize(Dimension dim) : 
		call(void java.awt.Component.setSize(Dimension)) &&
args(dim);

	or 

	pointcut changeSize(Dimension dim) : 
		call(void java.awt.Component+.setSize(Dimension)) &&
args(dim);

Thanks,

Ron DiFrango


-----Original Message-----
From: Anagnost, Ted (MED, GEMS-IT) [mailto:Theodore.Anagnost@xxxxxxxxxx] 
Sent: Tuesday, September 02, 2003 12:43 PM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] inherits from?


Hello,

I'm interested in writing a pointcut that matches all methods that call
setSize(Dimension); from any subclass of java.awt.Component.  

So far I have:

	pointcut changeSize(Dimension dim) : 
		call(void *.setSize(Dimension)) && args(dim);

How do I specify only to match subclasses of java.awt.Component?

Thanks,

Ted



_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users
 
**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.


Back to the top