getMethodsByParameterTypes
Try to find a MethodDeclaration by its parameter types. The given parameter types must literally match the declared types of this node's parameters, so passing the string "List" to this method will find all methods that have exactly one parameter whose type is declared as List, but not methods with exactly one parameter whose type is declared as java.util.List or java.awt.List. Conversely, passing the string "java.util.List" to this method will find all methods that have exactly one parameter whose type is declared as java.util.List, but not if the parameter type is declared as List. Similarly, note that generics are matched as well: If there is a method that has a parameter declared as List<String>, then it will be considered as a match only if the given string is "List<String>", but not if the given string is only "List".
Return
the methods found
Parameters
the types of parameters like "Map<Integer, String>", "int" to match void foo(Map<Integer,String> myMap, int number)
Try to find a MethodDeclaration by its parameter types. Note that this is a match in SimpleName, so java.awt.List and java.util.List are identical to this algorithm. In addition, note that it is the erasure of each type which is considered, so passing List.class to this method will return all methods that have exactly one parameter whose type is named List, regardless of whether the parameter type is declared without generics as List, or with generics as List<String>, or List<Integer>, etc.
Return
the methods found
Parameters
the types of parameters like Map.class, int.class to match void foo(Map<Integer,String> myMap, int number)