Convert an attribute to its name
<p>It is possible to access a class attribute by its name using the following code:</p>

<pre><code>MyClass.class.getDeclaredField("myAtt");
</code></pre>

<p>is it possible to create a function which do reverse? i.e. a function which convert an attribute to its name?</p>

<p><strong>EDIT:</strong> I'm adding this edit to make this more clear:<br>
consider the following class:</p>

<pre><code>class MyClass {
    Integer myAttribute;
}
</code></pre>

<p>I am looking for a function which accepts <code>myAttribute</code> (itself, or a reference to it. idk!) and returns <code>"myAttribute"</code> string.</p>
