This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Sorry, do you mean calling a method belonging to the anonymous inner class, or calling another method from within an anonymous inner class?
Anyway, in both cases you just call it like any other method, as long as you have a reference to the object that you want to call the method on. For instance, within your Bar.foo() method you can just call:
It doesn't matter whether the Foo passed in was created as an anonynous inner class or a conventional class - either way you can still call the methods of the Foo interface on it.
If that doesn't answer the question, can you be a bit more specific about what you mean?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com