Search in sources :

Example 1 with LanguageExpression

use of org.apache.camel.model.language.LanguageExpression in project camel by apache.

the class ExpressionClauseSupport method language.

/**
     * Evaluates a given language name with the expression text
     *
     * @param language the name of the language
     * @param expression the expression in the given language
     * @return the builder to continue processing the DSL
     */
public T language(String language, String expression) {
    LanguageExpression exp = new LanguageExpression(language, expression);
    setExpressionType(exp);
    return result;
}
Also used : LanguageExpression(org.apache.camel.model.language.LanguageExpression)

Aggregations

LanguageExpression (org.apache.camel.model.language.LanguageExpression)1