在以下片段中:
public class a {
public void otherMethod(){}
public void doStuff(String str, InnerClass b){}
public void method(a){
doStuff("asd",
new InnerClass(){
public void innerMethod(){
otherMethod();
}
}
);
}
}
是否存在从内部类引用外部类的关键字?基本上,我想做的是outer.otherMethod(),或类似的东西,但似乎找不到任何东西。