Package org.apache.camel.model.language
Class JoorExpression.Builder
- java.lang.Object
-
- org.apache.camel.model.language.TypedExpressionDefinition.AbstractBuilder<JoorExpression.Builder,JoorExpression>
-
- org.apache.camel.model.language.JoorExpression.Builder
-
- All Implemented Interfaces:
LanguageBuilder<JoorExpression>
- Enclosing class:
- JoorExpression
public static class JoorExpression.Builder extends TypedExpressionDefinition.AbstractBuilder<JoorExpression.Builder,JoorExpression>
Builder
is a specific builder forJoorExpression
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JoorExpression
end()
Ends the build of an expression.T
expression(String expression)
The expression value in your chosen language syntaxT
id(String id)
Sets the id of this nodeJoorExpression.Builder
preCompile(boolean preCompile)
Whether the expression should be pre compiled once during initialization phase.JoorExpression.Builder
preCompile(String preCompile)
Whether the expression should be pre compiled once during initialization phase.T
predicate(org.apache.camel.Predicate predicate)
JoorExpression.Builder
singleQuotes(boolean singleQuotes)
Whether single quotes can be used as replacement for double quotes.JoorExpression.Builder
singleQuotes(String singleQuotes)
Whether single quotes can be used as replacement for double quotes.T
trim(boolean trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaksT
trim(String trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks-
Methods inherited from class org.apache.camel.model.language.TypedExpressionDefinition.AbstractBuilder
resultType, resultTypeName
-
-
-
-
Method Detail
-
preCompile
public JoorExpression.Builder preCompile(String preCompile)
Whether the expression should be pre compiled once during initialization phase. If this is turned off, then the expression is reloaded and compiled on each evaluation.
-
preCompile
public JoorExpression.Builder preCompile(boolean preCompile)
Whether the expression should be pre compiled once during initialization phase. If this is turned off, then the expression is reloaded and compiled on each evaluation.
-
singleQuotes
public JoorExpression.Builder singleQuotes(String singleQuotes)
Whether single quotes can be used as replacement for double quotes. This is convenient when you need to work with strings inside strings.
-
singleQuotes
public JoorExpression.Builder singleQuotes(boolean singleQuotes)
Whether single quotes can be used as replacement for double quotes. This is convenient when you need to work with strings inside strings.
-
end
public JoorExpression end()
Description copied from interface:LanguageBuilder
Ends the build of an expression.- Returns:
- the expression fully built.
-
id
public T id(String id)
Sets the id of this node
-
trim
public T trim(String trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks
-
trim
public T trim(boolean trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks
-
expression
public T expression(String expression)
The expression value in your chosen language syntax
-
predicate
public T predicate(org.apache.camel.Predicate predicate)
-
-