@Test public void testIntToColorLookup() throws Exception { System.out.println(" testIntToColorLookup"); setupParameters(ints, colors); Function fn = finder.findFunction("recode", parameters); for (int i = 0; i < ints.length; i++) { assertEquals(colors[i], fn.evaluate(feature(ints[i]), Color.class)); } }
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; }