Function getAllMethods