Returns the expression function given the name @param function The name of the expression to use @return The expression when located @throws UnsupportedOperationException if the requested function hasn't been stored in the map.
(final String function)
| 85 | * been stored in the map. |
| 86 | */ |
| 87 | public static Expression getByName(final String function) { |
| 88 | final Expression expression = available_functions.get(function); |
| 89 | if (expression == null) { |
| 90 | throw new UnsupportedOperationException("Function " + function |
| 91 | + " has not been implemented"); |
| 92 | } |
| 93 | return expression; |
| 94 | } |
| 95 | } |