Java tutorial
//package com.java2s; import java.lang.reflect.Method; import java.util.HashSet; import java.util.Set; public class Main { public final static Set<String> getMethods(Class<?> clazz) { HashSet<String> methodSet = new HashSet<String>(); Method[] methodArray = clazz.getMethods(); for (Method method : methodArray) { String methodName = method.getName(); methodSet.add(methodName); } return methodSet; } }