GWT Reflection: Create Type information on Demand

To reduce startup time and memory footprint it is better to create the Type information on demand and not to create all types on startup and put them into a big HashMap.

Example for the generated code of the boolean type:

  private static Type c0;
  private static Type c0() {
  if(c0!=null) return c0;
  c0 = new Type("boolean", 0, boolean.class, null, null);
  c0.isPrimitive = true;
  return c0;
  }

And in forName a switch statement is used:

      case 64711720:
          if(name.equals("boolean"))return c0();
      break;