@Test public void testAdd() { FilterFactory ff = CommonFactoryFinder.getFilterFactory2(null); ExpressionBuilder b = new ExpressionBuilder(); Expression e; assertEquals( ff.add( ff.literal(1), ff.literal(2)), b.add().expr1().literal(1).expr2().literal(2).build()); assertEquals( ff.add( ff.literal(1), ff.literal(2)), b.add().expr1(1).expr2(2).build()); }
public AddBuilder add(){ delegate = new AddBuilder(); unset = false; return (AddBuilder) delegate; }
ExpressionBuilder implements Builder<Expression> { public AddBuilder add(){ delegate = new AddBuilder(); unset = false; return (AddBuilder) delegate; } }
ExpressionBuilder implements Builder<Expression> { public AddBuilder add(){ delegate = new AddBuilder(); unset = false; return (AddBuilder) delegate; } ExpressionBuilder();  ExpressionBuilder( Expression expr ); }
ExpressionBuilder implements Builder<Expression> { public AddBuilder add(){ delegate = new AddBuilder(); unset = false; return (AddBuilder) 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 AddBuilder add(){ delegate = new AddBuilder(); unset = false; return (AddBuilder) 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();  }