Super Type Tokens. When we added generics to Java in JDK5, I changed the class java.lang.Class to become a generic type.
For example, the type of String.class is now Class<String>. Gilad Bracha coined the term type tokens for this. The taste of Java Generics. Reflecting generics. Code by Any Other NameReflecting genericsby Ian RobertsonJune 23, 2007 Summary Type arguments to generic classes are not available for reflection at runtime - or are they?
The type arguments for statically declared types can be discovered at runtime. A look at how to do this, and why you might want to.