Package org.apache.camel.model.language
Class JoorExpression
- java.lang.Object
-
- org.apache.camel.model.language.ExpressionDefinition
-
- org.apache.camel.model.language.TypedExpressionDefinition
-
- org.apache.camel.model.language.JoorExpression
-
- 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="3.7.0", label="language", title="jOOR") public class JoorExpression extends TypedExpressionDefinition
Evaluates a jOOR (Java compiled once at runtime) expression.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JoorExpression.Builder
Builder
is a specific builder forJoorExpression
.-
Nested 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 Constructor Description JoorExpression()
JoorExpression(String expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLanguage()
String
getPreCompile()
String
getSingleQuotes()
void
setPreCompile(String preCompile)
Whether the expression should be pre compiled once during initialization phase.void
setSingleQuotes(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, setResultTypeName
-
Methods 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 Detail
-
JoorExpression
public JoorExpression()
-
JoorExpression
public JoorExpression(String expression)
-
-
Method Detail
-
getLanguage
public String getLanguage()
- Overrides:
getLanguage
in classExpressionDefinition
-
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.
-
-