import java.lang.reflect.*; Class c = baum.Baum.class; for (Field f : c.getFields()) { System.out.println (f); } for (Method m : c.getMethods()) { System.out.println (m); }