Java 类org.robolectric.annotation.RealObject 实例源码

项目:FullRobolectricTestSample    文件:ShadowWrangler.java   
public MetaShadow(Class<?> shadowClass) {
  while (shadowClass != null) {
    for (Field field : shadowClass.getDeclaredFields()) {
      if (field.isAnnotationPresent(RealObject.class)) {
        field.setAccessible(true);
        realObjectFields.add(field);
      }
    }
    shadowClass = shadowClass.getSuperclass();
  }

}