Is there a syntax to get the reference to an anonymous inner class from a further anonymous inner class?
Consider this case: public class SomeClass { public void someMethod() { new SomeInterface() { public void someOtherMethod() { new SomeOtherInterface() { new someThirdMethod() { //My question is about code located here. } }; } }; } } Is there a syntax to reference the instance of the anonymous inner class represented by SomeInterface at the commented code? For SomeClass you can do SomeClass.this Is there an equivalent to get the implementation of SomeInterface? If not, of course you can just define a final local variable in the SomeInterface implementation and reference it, but I was just