jdave.runner
Class ClassMemberSorter
java.lang.Object
jdave.runner.ClassMemberSorter
public final class ClassMemberSorter
- extends Object
Provides lists of class members (methods and inner classes) in the same
order as they have been declared in the source code. Requires that the
classes have been compiled with debug information (line numbers) included
in the bytecode and that the methods have a body (not native nor abstract).
- Since:
- 4.1.2008
- Author:
- Esko Luontola
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getClasses
public static Class<?>[] getClasses(Class<?> declaringClass)
- Returns:
- the same as
Class.getClasses() but in the same order as
declared in the source code.
getMethods
public static Method[] getMethods(Class<?> clazz)
- Returns:
- the same as
Class.getMethods() but in the same order as
declared in the source code.
Copyright © 2010. All Rights Reserved.