Here Method[] all = getClass().getDeclaredMethods();
See Calling functions with variables - #6 by Schred