System.out.println(clazz.getName()); System.out.println("Fields: "); Field[] fields = clazz.getFields(); for (int i = 0; i < fields.length; i++) { System.out.println("\t" + fields[i]); } System.out.println("Methods: "); Method[] methods = clazz.getMethods(); for (int i = 0; i < methods.length; i++) { System.out.println("\t" + methods[i]); }
System.out.println(clazz.toString());
	public void visit(Class clazz) {		System.out.println(clazz.getName());		System.out.println("Fields: ");		Field[] fields = clazz.getFields();		for (int i = 0; i < fields.length; i++) {			System.out.println("\t" + fields[i]);		}		System.out.println("Methods: ");		Method[] methods = clazz.getMethods();		for (int i = 0; i < methods.length; i++) {			System.out.println("\t" + methods[i]);		}		System.out.println();		System.out.println();	}