Class ExpressionBuilder
Object
ExpressionBuilder
- All Implemented Interfaces:
Builder<Expression>
- Direct Known Subclasses:
ChildExpressionBuilder
ExpressionBuilder acting as a simple wrapper around an Expression.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Builder<? extends Expression>
protected FilterFactory
protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd()
build()
Build the expression.divide()
function()
boolean
isUnset()
literal()
Define expression as a literal.Builder<?>
multiply()
property()
Builder<?>
reset()
Configure the Builder to produce a default result.reset
(Expression original) Configure the Builder to produce a copy of the provided original.subtract()
unset()
Configure the Builder to producenull
.
-
Field Details
-
ff
-
unset
protected boolean unset -
delegate
-
-
Constructor Details
-
ExpressionBuilder
public ExpressionBuilder() -
ExpressionBuilder
-
-
Method Details
-
literal
Define expression as a literal.Example:
b.literal().value( 1 );
-
literal
-
add
-
multiply
-
divide
-
subtract
-
property
-
property
-
function
-
function
-
build
Build the expression.- Specified by:
build
in interfaceBuilder<Expression>
- Returns:
- Created object may be null if unset()
-
reset
Description copied from interface:Builder
Configure the Builder to produce a default result.- Specified by:
reset
in interfaceBuilder<Expression>
- Returns:
- Builder configured to produce a default result.
-
reset
Description copied from interface:Builder
Configure the Builder to produce a copy of the provided original.- Specified by:
reset
in interfaceBuilder<Expression>
- Parameters:
original
- Original, if null this will behave the same as unset()- Returns:
- Builder configured to produce the provided original
-
unset
Description copied from interface:Builder
Configure the Builder to producenull
.This method allows a Builder to be used as a placeholder; in its unset state the build() method will produce
null
. If any of the builder methods are used the builder will produce a result.- Specified by:
unset
in interfaceBuilder<Expression>
- Returns:
- Builder configured to build
null
-
isUnset
public boolean isUnset()
-