Presented below is a way to access outer class from inner class.

Java Code:
public class TestIt {
  TestIt testItClass = this;

  public static void main(String a[]){
     new TestIt().doit();
     /*
      output :
      Hello world!
     */      
  }

  public void doit() {
      new InnerClass().sayHello();
  }

  public void enclosingClassMethod(){
      System.out.println("Hello world!");
  }

  class InnerClass {
    public void sayHello() {
      testItClass.enclosingClassMethod();
      }
  }
}