Interface Expression

All Known Implementing Classes:
AssertionClause.PredicateValueBuilder, BeanExpression, ConstantExpression, DirectVmConsumerExpression, ELExpression, ExpressionAdapter, ExpressionAdapter, ExpressionClause, ExpressionDefinition, ExpressionSupport, ExpressionSupport, GroovyExpression, HeaderExpression, JavaScriptExpression, JsonPathExpression, JXPathExpression, LanguageExpression, MethodCallExpression, MvelExpression, NamespaceAwareExpression, OgnlExpression, PhpExpression, PredicateToExpressionAdapter, PropertyExpression, PythonExpression, RefExpression, RubyExpression, SimpleBuilder, SimpleExpression, SpELExpression, SqlExpression, TokenizerExpression, TokenPairExpressionIterator, TokenXMLExpressionIterator, TokenXMLPairExpressionIterator, ValueBuilder, VtdXmlExpression, XPathBuilder, XPathExpression, XQueryExpression

public interface Expression

An expression provides a plugin strategy for evaluating expressions on a message exchange to support things like scripting languages, XQuery or SQL as well as any arbitrary Java expression.


Method Summary
<T> T
evaluate(Exchange exchange, Class<T> type)
          Returns the value of the expression on the given exchange

Method Detail


<T> T evaluate(Exchange exchange,
               Class<T> type)
Returns the value of the expression on the given exchange

exchange - the message exchange on which to evaluate the expression
type - the expected type of the evaluation result
the value of the expression

Apache Camel