org.apache.camel.language.mvel
Class MvelExpression

java.lang.Object
  extended by org.apache.camel.impl.ExpressionSupport
      extended by org.apache.camel.language.mvel.MvelExpression
All Implemented Interfaces:
Expression, Predicate

public class MvelExpression
extends ExpressionSupport


Constructor Summary
MvelExpression(MvelLanguage language, String expressionString, Class<?> type)
           
 
Method Summary
protected  String assertionFailureMessage(Exchange exchange)
           
 Object evaluate(Exchange exchange)
           
<T> T
evaluate(Exchange exchange, Class<T> tClass)
          Returns the value of the expression on the given exchange
 Class<?> getType()
           
static MvelExpression mvel(String expression)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.ExpressionSupport
assertMatches, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MvelExpression

public MvelExpression(MvelLanguage language,
                      String expressionString,
                      Class<?> type)
Method Detail

mvel

public static MvelExpression mvel(String expression)

evaluate

public <T> T evaluate(Exchange exchange,
                      Class<T> tClass)
Description copied from interface: Expression
Returns the value of the expression on the given exchange

Parameters:
exchange - the message exchange on which to evaluate the expression
tClass - the expected type of the evaluation result
Returns:
the value of the expression

evaluate

public Object evaluate(Exchange exchange)
Overrides:
evaluate in class ExpressionSupport

getType

public Class<?> getType()

assertionFailureMessage

protected String assertionFailureMessage(Exchange exchange)
Specified by:
assertionFailureMessage in class ExpressionSupport

toString

public String toString()
Overrides:
toString in class Object


Apache CAMEL