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,DatasonnetExpression,GroovyExpression,JavaExpression,JavaScriptExpression,JoorExpression,MethodCallExpression,MvelExpression,OgnlExpression,PythonExpression,RefExpression,SimpleExpression,SingleInputTypedExpressionDefinition,SpELExpression
Expression for which a result type can be provided.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTypedExpressionDefinition.AbstractBuilder<T extends TypedExpressionDefinition.AbstractBuilder<T,E>, E extends TypedExpressionDefinition> AbstractBuilderis the base builder for typed expression. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedTypedExpressionDefinition(String expression) protectedTypedExpressionDefinition(org.apache.camel.Expression expression) protected -
Method Summary
Modifier and TypeMethodDescriptionClass<?> voidsetResultType(Class<?> resultType) Sets the class name of the result type (type from output)voidsetResultTypeName(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)
-