@Test public void testRecodeUndefinedValueReturnsNull() throws Exception { System.out.println(" testRecodeUndefinedValueReturnsNull"); setupParameters(words, ints); Function fn = finder.findFunction("recode", parameters); final String missing = "missing"; assertNull(fn.evaluate(feature(missing))); }
public Object evaluate(Object object) { return evaluate(object, Object.class); }
RecodeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } }
RecodeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } RecodeFunction();  RecodeFunction(List<Expression> parameters, Literal fallback); }
RecodeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } RecodeFunction();  RecodeFunction(List<Expression> parameters, Literal fallback); String getName(); FunctionName getFunctionName(); List<Expression> getParameters(); Object accept(ExpressionVisitor visitor, Object extraData); Object evaluate(Object object); T evaluate(Object object, Class<T> context); Literal getFallbackValue(); }
RecodeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } RecodeFunction();  RecodeFunction(List<Expression> parameters, Literal fallback); String getName(); FunctionName getFunctionName(); List<Expression> getParameters(); Object accept(ExpressionVisitor visitor, Object extraData); Object evaluate(Object object); T evaluate(Object object, Class<T> context); Literal getFallbackValue(); static final FunctionName NAME; }