Class JavaExpression.Builder

All Implemented Interfaces:
LanguageBuilder<JavaExpression>
Enclosing class:
JavaExpression

public static class JavaExpression.Builder extends TypedExpressionDefinition.AbstractBuilder<JavaExpression.Builder,JavaExpression>
Builder is a specific builder for JavaExpression.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • preCompile

      public JavaExpression.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 JavaExpression.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 JavaExpression.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 JavaExpression.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 JavaExpression end()
      Description copied from interface: LanguageBuilder
      Ends the build of an expression.
      Returns:
      the expression fully built.
    • id

      Sets the id of this node
    • trim

      public JavaExpression.Builder trim(String trim)
      Whether to trim the value to remove leading and trailing whitespaces and line breaks
    • trim

      public JavaExpression.Builder trim(boolean trim)
      Whether to trim the value to remove leading and trailing whitespaces and line breaks
    • expression

      public JavaExpression.Builder expression(String expression)
      The expression value in your chosen language syntax
    • predicate

      public JavaExpression.Builder predicate(org.apache.camel.Predicate predicate)