I don't think one would implement a TypeVariable. One gets an
implementation from an instance of java.lang.Class.
<http://java.sun.com/docs/books/tutorial/reflect/>
Short example:
import static java.lang.System.out;
....
/** method to list type parameters */
void listTypes( Object o ) {
Class c = o.getClass();
TypeVariable[] tv = c.getTypeParameters();
if (tv.length != 0) {
out.format(" ");
for (TypeVariable t : tv)
out.format("%s ", t.getName());
out.format("%n%n");
} else {
out.format(" -- No Type Parameters --%n%n");
}
}
I didn't test that, but most of it I got from that link I gave you. It
should work.