All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.itranswarp.jxrest.Utils Maven / Gradle / Ivy

package com.itranswarp.jxrest;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;

/**
 * Utils for internal use only.
 * 
 * @author Michael Liao
 */
class Utils {

    static List getAllMethods(Class clazz) {
        List methods = new ArrayList();
        while (!clazz.equals(Object.class)) {
            for (Method m : clazz.getDeclaredMethods()) {
                methods.add(m);
            }
            clazz = clazz.getSuperclass();
        }
        return methods;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy