Returns a list of all class matches in a description. @param desc @return
(String desc)
| 13 | * @return |
| 14 | */ |
| 15 | public static List<String> matchDescriptionClasses(String desc) { |
| 16 | String pattern = "(?<=L).*?(?=[<;(])"; |
| 17 | Pattern pat = Pattern.compile(pattern); |
| 18 | Matcher m = pat.matcher(desc); |
| 19 | List<String> matches = new ArrayList<String>(); |
| 20 | while (m.find()) { |
| 21 | matches.add(m.group()); |
| 22 | } |
| 23 | return matches; |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Returns a list of all numbers found in a given string. |
no outgoing calls
no test coverage detected