Class FunctionBuilder
- Object
-
- FunctionBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
FunctionBuilder.ParamBuilder
-
Field Summary
Fields Modifier and Type Field Description protected FilterFactory
ff
-
Constructor Summary
Constructors Constructor Description FunctionBuilder()
FunctionBuilder(Function origional)
FunctionBuilder(FunctionBuilder.ParamBuilder parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function
build()
Created object, may be null if unset()FunctionBuilder
end()
LiteralBuilder
fallback()
Literal fallback value to use if named function is not implementedFunctionBuilder
fallback(Object obj)
Inline fallback value to use if named function is not implementedFunctionBuilder
function()
FunctionBuilder
function(String name)
FunctionBuilder
literal(Object literal)
FunctionBuilder
name(String function)
FunctionBuilder.ParamBuilder
param()
FunctionBuilder.ParamBuilder
param(int index)
FunctionBuilder
property(String xpath)
FunctionBuilder
reset()
Configure the Builder to produce a default result.FunctionBuilder
reset(Function original)
Configure the Builder to produce a copy of the provided original.FunctionBuilder
unset()
Configure the Builder to producenull
.
-
-
-
Field Detail
-
ff
protected FilterFactory ff
-
-
Constructor Detail
-
FunctionBuilder
public FunctionBuilder()
-
FunctionBuilder
public FunctionBuilder(FunctionBuilder.ParamBuilder parent)
-
FunctionBuilder
public FunctionBuilder(Function origional)
-
-
Method Detail
-
param
public FunctionBuilder.ParamBuilder param()
-
literal
public FunctionBuilder literal(Object literal)
-
property
public FunctionBuilder property(String xpath)
-
function
public FunctionBuilder function()
-
function
public FunctionBuilder function(String name)
-
param
public FunctionBuilder.ParamBuilder param(int index)
-
name
public FunctionBuilder name(String function)
-
fallback
public FunctionBuilder fallback(Object obj)
Inline fallback value to use if named function is not implemented
-
fallback
public LiteralBuilder fallback()
Literal fallback value to use if named function is not implemented
-
build
public Function build()
Description copied from interface:Builder
Created object, may be null if unset()
-
reset
public FunctionBuilder reset()
Description copied from interface:Builder
Configure the Builder to produce a default result.
-
reset
public FunctionBuilder reset(Function original)
Description copied from interface:Builder
Configure the Builder to produce a copy of the provided original.
-
unset
public FunctionBuilder 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.
-
end
public FunctionBuilder end()
-
-