Package org.apache.camel.model.language
Class JoorExpression
- java.lang.Object
-
- org.apache.camel.model.language.ExpressionDefinition
-
- 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 ExpressionDefinition
Evaluates a jOOR (Java compiled once at runtime) expression.
-
-
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()
Class<?>
getResultType()
String
getResultTypeName()
String
getSingleQuotes()
void
setPreCompile(String preCompile)
Whether the expression should be pre compiled once during initialization phase.void
setResultType(Class<?> resultType)
Sets the class of the result type (type from output)void
setResultTypeName(String resultTypeName)
Sets the class name of the result type (type from output)void
setSingleQuotes(String singleQuotes)
Whether single quotes can be used as replacement for double quotes.-
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.
-
getResultType
public Class<?> getResultType()
-
setResultType
public void setResultType(Class<?> resultType)
Sets the class of the result type (type from output)
-
getResultTypeName
public String getResultTypeName()
-
setResultTypeName
public void setResultTypeName(String resultTypeName)
Sets the class name of the result type (type from output)
-
-