Package org.apache.camel.model.language
Class JavaExpression
java.lang.Object
org.apache.camel.model.language.ExpressionDefinition
org.apache.camel.model.language.TypedExpressionDefinition
org.apache.camel.model.language.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.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.camel.model.language.TypedExpressionDefinition
TypedExpressionDefinition.AbstractBuilder<T extends TypedExpressionDefinition.AbstractBuilder<T,E>, E extends TypedExpressionDefinition> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPreCompile(String preCompile) Whether the expression should be pre compiled once during initialization phase.voidsetSingleQuotes(String singleQuotes) Whether single quotes can be used as replacement for double quotes.Methods inherited from class org.apache.camel.model.language.TypedExpressionDefinition
getResultType, getResultTypeName, setResultType, setResultTypeNameMethods inherited from class org.apache.camel.model.language.ExpressionDefinition
createExpression, createPredicate, evaluate, getExpression, getExpressionFactory, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getPredicate, getPredicateFactory, getTrim, init, initPredicate, matches, setExpression, setExpressionType, setExpressionValue, setId, setTrim, toString
-
Constructor Details
-
JavaExpression
public JavaExpression() -
JavaExpression
-
-
Method Details
-
getLanguage
- Overrides:
getLanguagein classExpressionDefinition
-
getPreCompile
-
setPreCompile
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
-
setSingleQuotes
Whether single quotes can be used as replacement for double quotes. This is convenient when you need to work with strings inside strings.
-