Skip to content

Instantly share code, notes, and snippets.

@zvozin
Created July 12, 2010 15:45
Show Gist options
  • Save zvozin/472622 to your computer and use it in GitHub Desktop.
Save zvozin/472622 to your computer and use it in GitHub Desktop.
public void doWithFields(Class<?> clazz) {
ReflectionUtils.doWithFields(clazz, new ReflectionUtils.FieldCallback()
{
public void doWith(Field field) throws IllegalArgumentException, IllegalAccessException {
System.out.println(field);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment