Split a compound name into parts separated by '.'. @param source the string to parse into simple names @return a list of simple names from the source
(ParserUtils.StringPosition source)
| 242 | * @return a list of simple names from the source |
| 243 | */ |
| 244 | private static List<String> splitName(ParserUtils.StringPosition source) { |
| 245 | List<String> result = new ArrayList<>(); |
| 246 | do { |
| 247 | result.add(parseName(source)); |
| 248 | } while (consumeChar(source, '.')); |
| 249 | return result; |
| 250 | } |
| 251 | |
| 252 | |
| 253 | private static final Pattern INTEGER_PATTERN = Pattern.compile("^[0-9]+$"); |
no test coverage detected