Some things that can be done with classes in Java.
/* Prints out declared methods of a class */ Method[] methods = t.getClass().getDeclaredMethods(); for (Method method : methods) { System.out.println("public method: " + method); }