@Test public void testLiteral() { FilterFactory ff = CommonFactoryFinder.getFilterFactory2(null); ExpressionBuilder b = new ExpressionBuilder(); Expression e; b.literal("hello world"); e = b.build(); assertEquals(ff.literal("hello world"), e); assertEquals(ff.literal(1), b.literal().value(1).build()); b.literal().value(1); e = b.build(); assertEquals(ff.literal(1), e); assertEquals(ff.literal(null), b.literal(null).build()); assertEquals(null, b.unset().build()); assertEquals(ff.literal(2), b.reset(ff.literal(2)).build()); }
public LiteralBuilder literal(){ delegate = new LiteralBuilder(); unset = false; return (LiteralBuilder) delegate; }
ExpressionBuilder implements Builder<Expression> { public LiteralBuilder literal(){ delegate = new LiteralBuilder(); unset = false; return (LiteralBuilder) delegate; } }
ExpressionBuilder implements Builder<Expression> { public LiteralBuilder literal(){ delegate = new LiteralBuilder(); unset = false; return (LiteralBuilder) delegate; } ExpressionBuilder();  ExpressionBuilder( Expression expr ); }
ExpressionBuilder implements Builder<Expression> { public LiteralBuilder literal(){ delegate = new LiteralBuilder(); unset = false; return (LiteralBuilder) 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 LiteralBuilder literal(){ delegate = new LiteralBuilder(); unset = false; return (LiteralBuilder) 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();  }