Creates stub adapters for GWT reflection using EasyMock. This takes in a real java reflection class and returns a JClassType which forwards all its method calls to the equivalent java reflection methods.
Most reflections are done lazily (only when the method is actually called), specially those which potentially require mocking a new class / method / field / parameter / constructor / etc.
The support for the typeinfo API is still incomplete, and in fact will always be in some way since Java doesn't support all the reflections that GWT's typeinfo does.
TODO: With a bit of generalization, this class should make its way to core/src/com/google/gwt/junit To make it public we need to...
- implement the missing parts and TODOs (e.g. generics)
- add tests to it (even though it's a testing utility, it does need tests, specially for cases like inner and anonymous classes, generic parameters, etc.)
- decide what to do with the parts of JType reflection that java doesn't have an equivalent for - e.g. parameter names. This may involve making a slightly more complex API to inject those values.