jdave.runner
Class ClassMemberSorter

java.lang.Object
  extended by jdave.runner.ClassMemberSorter

public final class ClassMemberSorter
extends java.lang.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

Method Summary
static java.lang.Class<?>[] getClasses(java.lang.Class<?> declaringClass)
           
static java.lang.reflect.Method[] getMethods(java.lang.Class<?> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClasses

public static java.lang.Class<?>[] getClasses(java.lang.Class<?> declaringClass)
Returns:
the same as Class.getClasses() but in the same order as declared in the source code.

getMethods

public static java.lang.reflect.Method[] getMethods(java.lang.Class<?> clazz)
Returns:
the same as Class.getMethods() but in the same order as declared in the source code.


Copyright © 2008. All Rights Reserved.