code: public JMethod []getMethods()
    {
      ArrayList<JMethod> methodList = new ArrayList<JMethod>();
  
      getMethods(methodList);
  
      JMethod []methods = new JMethod[methodList.size()];
      methodList.toArray(methods);
  
      return methods;
    }
docs: Returns the matching method