(String script, String str)
| 29 | } |
| 30 | |
| 31 | public static ExtraKeys parse(String script, String str) |
| 32 | { |
| 33 | Collection<ExtraKey> dst = new ArrayList<ExtraKey>(); |
| 34 | String[] ks = str.split("\\|"); |
| 35 | for (int i = 0; i < ks.length; i++) |
| 36 | dst.add(ExtraKey.parse(ks[i], script)); |
| 37 | return new ExtraKeys(dst); |
| 38 | } |
| 39 | |
| 40 | /** Merge identical keys. This is required to decide whether to add |
| 41 | alternatives. Script is generalized (set to null) on any conflict. */ |
no test coverage detected