* @param clazz The class for which to retrieve the methods.
*
* @return Returns the methods for this class.
*/
public static Method[] getMethods(Class<?> clazz) {
GetMethods action = GetMethods.action( clazz );
final Method[] methods;
if ( System.getSecurityManager() != null ) {
methods = AccessController.doPrivileged( action );
}
else {
methods = action.run();
}
return methods;
}