是否有可能this从Java内部类中获取引用?
即
class Outer {
void aMethod() {
NewClass newClass = new NewClass() {
void bMethod() {
// How to I get access to "this" (pointing to outer) from here?
}
};
}
}
Run Code Online (Sandbox Code Playgroud)