@Test public void shouldResolveAddFunction() throws Exception { FunctionMapperSpi mapper = new FunctionMapperSpi.Reflective(Functions.class) { @Override public String getPrefixName() { return "test"; } }; Method add = mapper.resolveFunction("add"); assertNotNull(add); assertEquals(1 + 2, add.invoke(null, 1, 2)); }
public abstract Method resolveFunction(String localName);
FunctionMapperSpi { public abstract Method resolveFunction(String localName); }
FunctionMapperSpi { public abstract Method resolveFunction(String localName);  }
FunctionMapperSpi { public abstract Method resolveFunction(String localName);  abstract String getPrefixName(); abstract Method resolveFunction(String localName); }
FunctionMapperSpi { public abstract Method resolveFunction(String localName);  abstract String getPrefixName(); abstract Method resolveFunction(String localName);  }