コード例 #1
0
 /**
  * todo: Move the GenericClass creation into a utility/factory class.
  *
  * @return
  */
 public GenericClass initGenericClass() {
   GenericReflector reflector =
       new GenericReflector(null, Platform4.reflectorForType(GenericObjectsTest.class));
   GenericClass _objectIClass = (GenericClass) reflector.forClass(Object.class);
   GenericClass result = new GenericClass(reflector, null, PERSON_CLASSNAME, _objectIClass);
   result.initFields(fields(result, reflector));
   return result;
 }
コード例 #2
0
 private GenericClass acmeDataClass() {
   GenericClass result = new GenericClass(_reflector, null, "com.acme.Person", _objectIClass);
   result.initFields(fields(result));
   return result;
 }