code: public static Method[] getDeclaredMethods(Class clazz) {
  	Method[] methods = clazz.getMethods();
  	ArrayList list = new ArrayList();
  	for (int i = 0; i < methods.length; i++) {
  	    if (methods[i].getDeclaringClass() == clazz) list.add(methods[i]);
  	}
  	if (list.size() == 0) return new Method[0];
  	return (Method[]) list.toArray(new Method[list.size()]);
      }
docs: return all methods that are defined by the class itself (not extended)
  
  @param clazz
  @return