I am implementing an interface from an aspect
declare parents: SomePackage.AClass+ extends InterfaceBelow
public interface InterfaceBelow() {
}
I need a method that should return a class / instance that implements the interface itself. Something like adding a method to an interface public Object getSelf(), and then use AspectJ to implement it as follows:
public InterfaceBelow.getSelf()
{
}
I need to do this in an aspect not from the class, and then {return this;}
source
share