@Test public void testArrayOfIntegers() throws Exception { FilterFactoryImpl ff = new FilterFactoryImpl(); Function func = ff.function("array", ff.literal(1), ff.literal(2)); assertTrue(func.evaluate(new Object(), Integer[].class) instanceof Integer[]); }
public Object evaluate(Object obj) { Object[] array = new Object[getParameters().size()]; for (int count = 0; count < getParameters().size(); count++) { array[count] = getExpression(count).evaluate(obj); } return array; }
ArrayFunction extends FunctionExpressionImpl { public Object evaluate(Object obj) { Object[] array = new Object[getParameters().size()]; for (int count = 0; count < getParameters().size(); count++) { array[count] = getExpression(count).evaluate(obj); } return array; } }
ArrayFunction extends FunctionExpressionImpl { public Object evaluate(Object obj) { Object[] array = new Object[getParameters().size()]; for (int count = 0; count < getParameters().size(); count++) { array[count] = getExpression(count).evaluate(obj); } return array; } ArrayFunction(); }
ArrayFunction extends FunctionExpressionImpl { public Object evaluate(Object obj) { Object[] array = new Object[getParameters().size()]; for (int count = 0; count < getParameters().size(); count++) { array[count] = getExpression(count).evaluate(obj); } return array; } ArrayFunction(); Object evaluate(Object obj); }
ArrayFunction extends FunctionExpressionImpl { public Object evaluate(Object obj) { Object[] array = new Object[getParameters().size()]; for (int count = 0; count < getParameters().size(); count++) { array[count] = getExpression(count).evaluate(obj); } return array; } ArrayFunction(); Object evaluate(Object obj); static FunctionName NAME; }