Conditions | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /* |
||
14 | @Override |
||
15 | public String interpret(String input) { |
||
16 | String[] exploded = input.split(" "); |
||
17 | |||
18 | for (String value : exploded) { |
||
19 | if (this.isNumeric(value)) { |
||
20 | int number = Integer.parseInt(value) - 1; |
||
21 | return this.getDataFromRegistry(exploded, this.registry.get(number)); |
||
22 | } |
||
23 | } |
||
24 | |||
25 | return input; |
||
26 | } |
||
48 |