Package org.apache.camel.model.language
Class TypedExpressionDefinition
java.lang.Object
org.apache.camel.model.language.ExpressionDefinition
org.apache.camel.model.language.TypedExpressionDefinition
- 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
- Direct Known Subclasses:
ConstantExpression
,CSimpleExpression
,GroovyExpression
,JavaExpression
,JavaScriptExpression
,JoorExpression
,MethodCallExpression
,MvelExpression
,OgnlExpression
,PythonExpression
,RefExpression
,SimpleExpression
,SingleInputTypedExpressionDefinition
,SpELExpression
,WasmExpression
Expression for which a result type can be provided.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
TypedExpressionDefinition.AbstractBuilder<T extends TypedExpressionDefinition.AbstractBuilder<T,
E>, E extends TypedExpressionDefinition> AbstractBuilder
is the base builder for typed expression. -
Constructor Summary
ModifierConstructorDescriptionprotected
protected
TypedExpressionDefinition
(String expression) protected
TypedExpressionDefinition
(org.apache.camel.Expression expression) protected
-
Method Summary
Modifier and TypeMethodDescriptionClass
<?> void
setResultType
(Class<?> resultType) Sets the class name of the result type (type from output)void
setResultTypeName
(String resultTypeName) Sets the class of the result type (type from output)Methods inherited from class org.apache.camel.model.language.ExpressionDefinition
createExpression, createPredicate, evaluate, getExpression, getExpressionFactory, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getLanguage, getPredicate, getPredicateFactory, getTrim, init, initPredicate, matches, setExpression, setExpressionType, setExpressionValue, setId, setTrim, toString
-
Constructor Details
-
TypedExpressionDefinition
protected TypedExpressionDefinition() -
TypedExpressionDefinition
-
TypedExpressionDefinition
protected TypedExpressionDefinition(org.apache.camel.Expression expression) -
TypedExpressionDefinition
-
-
Method Details
-
getResultTypeName
-
setResultTypeName
Sets the class of the result type (type from output) -
getResultType
-
setResultType
Sets the class name of the result type (type from output)
-