@Test public void defaultIfNullNoContextTest() throws Exception { Function f = (Function) ECQL.toExpression("DefaultIfNull('#FF0000', '#000000')"); assertEquals("#FF0000", f.evaluate(null)); f = ff.function("DefaultIfNull", ff.literal(null), ff.literal("#000000")); assertEquals("#000000", f.evaluate(null)); }
@Override public Function function(String name, List<Expression> args, Literal fallback) { return function(new NameImpl(name), args, fallback); }
MBFunctionFactory implements FunctionFactory { @Override public Function function(String name, List<Expression> args, Literal fallback) { return function(new NameImpl(name), args, fallback); } }
MBFunctionFactory implements FunctionFactory { @Override public Function function(String name, List<Expression> args, Literal fallback) { return function(new NameImpl(name), args, fallback); }  }
MBFunctionFactory implements FunctionFactory { @Override public Function function(String name, List<Expression> args, Literal fallback) { return function(new NameImpl(name), args, fallback); }  @Override List<FunctionName> getFunctionNames(); @Override Function function(String name, List<Expression> args, Literal fallback); @Override Function function(Name name, List<Expression> args, Literal fallback); }
MBFunctionFactory implements FunctionFactory { @Override public Function function(String name, List<Expression> args, Literal fallback) { return function(new NameImpl(name), args, fallback); }  @Override List<FunctionName> getFunctionNames(); @Override Function function(String name, List<Expression> args, Literal fallback); @Override Function function(Name name, List<Expression> args, Literal fallback);  }