How can a class access its own classname?
<p>I use an java application which generates a class dynamically. Via an ant script the source code will be produced for a give classname and a class template.</p>

<p>In the template for the class I need to know the name of even this class, to call a static method of the class.</p>

<p>Example. The class will be named "VersionInfo". Then in static main() of it I want to call the static method: VersionInfo.getId(). 
But I don't know the class-name.</p>

<p>Is there an equivalent to "this" for static contexts or some Utility-Class for such a purpose?</p>
