List<FunctionFactory> l = new ArrayList<FunctionFactory>();
l.add(new FunctionFactory( ) {
@SuppressWarnings("unchecked")
public List<FunctionName> getFunctionNames() {
return (List) Arrays.asList(new FunctionNameImpl("foo",
new String[]{"bar", "baz"}));
}
public Function function(String name, List<Expression> args, Literal fallback) {
return function(new NameImpl(name), args, fallback);