@Test public void testFunction() { FilterFactory ff = CommonFactoryFinder.getFilterFactory2(null); ExpressionBuilder b = new ExpressionBuilder(); Expression e; assertEquals(ff.function("pi"), b.function().name("pi").build()); assertEquals(ff.function("abs", ff.literal(-2)), b.function().name("abs").param().literal(-2).build()); assertEquals(ff.function("abs", ff.literal(-2)), b.function("abs").param().literal(-2).build()); assertEquals(ff.function("min", ff.literal(1), ff.literal(2)), b.function("min").param().literal(1).param().literal(2).build()); assertEquals(ff.function("min", ff.literal(1), ff.literal(2)), b.function("min").literal(1).literal(2).build()); assertEquals(ff.function("max", ff.literal(1), ff.property("x")), b.function("max").literal(1).property("x").build()); assertEquals(ff.function("max", ff.literal(1), ff.property("x")), b.function("max").literal(1).param().property("x").build()); }
public FunctionBuilder function(){ this.delegate = new FunctionBuilder(); unset = false; return (FunctionBuilder) delegate; }
ExpressionBuilder implements Builder<Expression> { public FunctionBuilder function(){ this.delegate = new FunctionBuilder(); unset = false; return (FunctionBuilder) delegate; } }
ExpressionBuilder implements Builder<Expression> { public FunctionBuilder function(){ this.delegate = new FunctionBuilder(); unset = false; return (FunctionBuilder) delegate; } ExpressionBuilder();  ExpressionBuilder( Expression expr ); }
ExpressionBuilder implements Builder<Expression> { public FunctionBuilder function(){ this.delegate = new FunctionBuilder(); unset = false; return (FunctionBuilder) delegate; } ExpressionBuilder();  ExpressionBuilder( Expression expr ); LiteralBuilder literal(); Builder<?> literal( Object literal ); AddBuilder add(); MultiplyBuilder multiply(); DivideBuilder divide(); SubtractBuilder subtract(); PropertyNameBuilder property(); Builder<?> property(String xpath); FunctionBuilder function(); FunctionBuilder function(String name); Expression build(); ExpressionBuilder reset(); ExpressionBuilder reset(Expression original); ExpressionBuilder unset(); boolean isUnset(); }
ExpressionBuilder implements Builder<Expression> { public FunctionBuilder function(){ this.delegate = new FunctionBuilder(); unset = false; return (FunctionBuilder) delegate; } ExpressionBuilder();  ExpressionBuilder( Expression expr ); LiteralBuilder literal(); Builder<?> literal( Object literal ); AddBuilder add(); MultiplyBuilder multiply(); DivideBuilder divide(); SubtractBuilder subtract(); PropertyNameBuilder property(); Builder<?> property(String xpath); FunctionBuilder function(); FunctionBuilder function(String name); Expression build(); ExpressionBuilder reset(); ExpressionBuilder reset(Expression original); ExpressionBuilder unset(); boolean isUnset();  }