for (FieldMetadata metadata : new OrderedMapValues<FieldMetadata>(fields)) { Field field = metadata.field; if (readDeprecated && ignoreDeprecated && field.isAnnotationPresent(Deprecated.class)) continue; try { Object value = field.get(object);
for (FieldMetadata metadata : new OrderedMapValues<FieldMetadata>(fields)) { Field field = metadata.field; if (readDeprecated && ignoreDeprecated && field.isAnnotationPresent(Deprecated.class)) continue; try { Object value = field.get(object);
if (ignoreDeprecated && !readDeprecated && field.isAnnotationPresent(Deprecated.class)) continue;
if (ignoreDeprecated && !readDeprecated && field.isAnnotationPresent(Deprecated.class)) continue;
for (FieldMetadata metadata : fields.values()) { Field field = metadata.field; if (readDeprecated && ignoreDeprecated && field.isAnnotationPresent(Deprecated.class)) continue; try { values[i++] = field.get(object);
for (FieldMetadata metadata : fields.values()) { Field field = metadata.field; if (readDeprecated && ignoreDeprecated && field.isAnnotationPresent(Deprecated.class)) continue; try { values[i++] = field.get(object);
for (FieldMetadata metadata : new OrderedMapValues<FieldMetadata>(fields)) { Field field = metadata.field; if (readDeprecated && ignoreDeprecated && field.isAnnotationPresent(Deprecated.class)) continue; try { Object value = field.get(object);
/** Injects actors from group into target's fields annotated with {@link InjectActor} using reflection. */ public static void injectActorFields(Object target, Group group) { Class<?> handledClass = target.getClass(); while (handledClass != null && !handledClass.equals(Object.class)) { for (final Field field : ClassReflection.getDeclaredFields(handledClass)) { if (field != null && field.isAnnotationPresent(InjectActor.class)) { try { InjectActor annotation = field.getDeclaredAnnotation(InjectActor.class).getAnnotation(InjectActor.class); String actorName = annotation.value(); if (actorName.length() == 0) { actorName = field.getName(); } Actor actor = group.findActor(actorName); if (actor == null && actorName.equals(group.getName())) { actor = group; } if (actor == null) { Gdx.app.error(TAG_INJECT_FIELDS, "Can't find actor with name: " + actorName + " in group: " + group + " to inject into: " + target); } else { field.setAccessible(true); field.set(target, actor); } } catch (final ReflectionException exception) { Gdx.app.error(TAG_INJECT_FIELDS, "Unable to set value into field: " + field + " of object: " + target, exception); } } } handledClass = handledClass.getSuperclass(); } }
if (ignoreDeprecated && !readDeprecated && field.isAnnotationPresent(Deprecated.class)) continue;
for (FieldMetadata metadata : fields.values()) { Field field = metadata.field; if (readDeprecated && ignoreDeprecated && field.isAnnotationPresent(Deprecated.class)) continue; try { values[i++] = field.get(object);