Class JavaExpression

All Implemented Interfaces:
org.apache.camel.Expression, org.apache.camel.ExpressionFactory, HasExpressionType, org.apache.camel.Predicate, org.apache.camel.PredicateFactory, org.apache.camel.spi.ExpressionFactoryAware, org.apache.camel.spi.PredicateFactoryAware

@Metadata(firstVersion="4.3.0", label="language", title="Java") public class JavaExpression extends TypedExpressionDefinition
Evaluates a Java (Java compiled once at runtime) expression.
  • Constructor Details

    • JavaExpression

      public JavaExpression()
    • JavaExpression

      public JavaExpression(String expression)
  • Method Details

    • getLanguage

      public String getLanguage()
      Overrides:
      getLanguage in class ExpressionDefinition
    • getPreCompile

      public String getPreCompile()
    • setPreCompile

      public void setPreCompile(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.
    • getSingleQuotes

      public String getSingleQuotes()
    • setSingleQuotes

      public void setSingleQuotes(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.