code: public Iterable<Method> findAllMethods( Pattern methodNamePattern ) {
          LinkedList<Method> methods = new LinkedList<Method>();
  
          final Method[] allMethods = this.targetClass.getMethods();
          for (int i = 0; i < allMethods.length; i++) {
              final Method m = allMethods[i];
              if (methodNamePattern.matcher(m.getName()).matches()) {
                  methods.add(m);
              }
          }
          return methods;
      }
docs: Finds the methods on the target class that match the supplied method name.
  
  @param methodNamePattern the regular expression pattern for the name of the method that is to be found.
  @return the Method objects that have a matching name, or empty if there are no methods that have a matching name.