[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RES: [aspectj-users] thisJoinPointStaticPart & warning

Wes,
 
I'm trying to check dependences between classes:
 
pointcut pc() : call(* *.*(..)) && !call(* MyClass.*(..)) ;
 
before() : pc() {
  String callerType = thisJoinPointStaticPart.getSourceLocation().getWithinType().getName();
  System.out.println("MyClass depends on '" + callerType);  
}
 
I would like to inform dependences statically, using declare warning...
 
André
 


De: aspectj-users-admin@xxxxxxxxxxx [mailto:aspectj-users-admin@xxxxxxxxxxx] Em nome de Wes Isberg
Enviada em: sábado, 15 de janeiro de 2005 23:38
Para: aspectj-users@xxxxxxxxxxx
Assunto: Re: [aspectj-users] thisJoinPointStaticPart & warning

Would you make a case why it should and how it could?
 
Wes
 
------------Original Message------------
From: André Dantas Rocha <ad-rocha@xxxxxxxxxx>
To: aspectj-users@xxxxxxxxxxx
Date: Sat, Jan-15-2005 12:46 PM
Subject: [aspectj-users] thisJoinPointStaticPart & warning
Hi,
 
Why it's not possible to use thisJoinPointStaticPart in "declare warning" ?
 
Thanks,
 
André