When it comes to classes without generics, i can access this .class attribute like this:
class Foo{ Class getMyClass(){ return Foo.cla
There isn't a way, because of type erasure. This:
Foo.class
... can not be obtained at runtime, it will always be the same type no matter what's the type of T. At runtime only this exists:
T