Java access the caller variable, is it possible? how?
<p>i have a class</p>

<pre><code>    main {  
      Class1 class1=new Class1();  
      class1.function1(); 
    }


     class Class1 {   
        int abc=1;   
        ArrayList&lt;Class2&gt; class2s=new ArrayList&lt;Class2&gt;(); 

        int function1() {
          class2s.add(new Class2(asd));
          abc=555;   
        }    
     }

     class Class2 {   
        int functionx() {
          Log.e("abc?", ""+PARENT???.abc);   
        } 
     }
</code></pre>

<p>How can I get the caller Class's variable, say abc?</p>
