package reflection03;

import java.lang.reflect.Method;
import java.util.List;

/**
 * Demonstriert, wie Informationen zu den Methoden einer Klasse ermittelt werden koennen.
 * 
 * @author  Ralf Kunze (rkunze@uos.de), Institut fuer Informatik, Universitaet Osnabrueck
 * @date 02.06.2007
 */
public class MethodTest {

    public static void main(String[] args) {
        Class mathClass = Math.class;
        System.out.println("Methoden der Klasse Math:");
        for(Method m: mathClass.getMethods()) {
            System.out.println("\t" + m);
        }
        
//        Class listClass = List.class;
//        System.out.println("Methoden des Interface List:");
//        for(Method m: listClass.getMethods()) {
//            System.out.println("\t" + m);
//        }
    }

}
