Class ExpressionNodeHelper

    • Method Detail

      • toExpressionDefinition

        public static ExpressionDefinition toExpressionDefinition​(org.apache.camel.Expression expression)
        Determines which ExpressionDefinition describes the given expression in the best possible way.

        This implementation will use types such as SimpleExpression, XPathExpression etc. if the given expression is detected as such a type.

        Parameters:
        expression - the expression
        Returns:
        a definition which describes the expression
      • toExpressionDefinition

        public static ExpressionDefinition toExpressionDefinition​(org.apache.camel.Predicate predicate)
        Determines which ExpressionDefinition describes the given predicate in the best possible way.

        This implementation will use types such as SimpleExpression, XPathExpression etc. if the given predicate is detect as such a type.

        Parameters:
        predicate - the predicate
        Returns:
        a definition which describes the predicate