@Test public void testFindCategorizeFunction() throws Exception { System.out.println(" testFindCategorizeFunction"); Literal fallback = ff2.literal("NOT_FOUND"); parameters.add(ff2.property("value")); parameters.add(ff2.literal(0)); Function fn = finder.findFunction("categorize", parameters, fallback); Object result = fn.evaluate(feature(0)); assertFalse("Could not locate 'categorize' function", result.equals(fallback.getValue())); }
public Object evaluate(Object object) { return evaluate(object, Object.class); }
CategorizeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } }
CategorizeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } CategorizeFunction();  CategorizeFunction(List<Expression> parameters, Literal fallback); }
CategorizeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } CategorizeFunction();  CategorizeFunction(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(); }
CategorizeFunction implements Function { public Object evaluate(Object object) { return evaluate(object, Object.class); } CategorizeFunction();  CategorizeFunction(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 String SUCCEEDING; static final String PRECEDING; static final String RASTER_DATA; static final FunctionName NAME; }