Class field filtering and iteration for Java