Code example for Method

Methods: getDeclaringClass

0
            return alphabeticalOrder(m1, m2);
        } 
    } 
 
    private int firstLineNumber(Method method) {
        return strategy.firstLineNumber(method, 0);
    } 
 
    private static boolean sameClass(Method o1, Method o2) {
        return o1.getDeclaringClass().equals(o2.getDeclaringClass());
    } 
 
    private static boolean parentClass(Method parent, Method child) {
        return parent.getDeclaringClass().isAssignableFrom(child.getDeclaringClass());
    } 
 
    private static int alphabeticalOrder(Method o1, Method o2) {
        return o1.getDeclaringClass().getName().compareTo(o2.getDeclaringClass().getName());
    } 
}