public final class ExpressionNodeHelper extends Object
ExpressionNode
Modifier and Type | Method and Description |
---|---|
static ExpressionDefinition |
toExpressionDefinition(org.apache.camel.Expression expression)
Determines which
ExpressionDefinition describes the given
expression best possible. |
static ExpressionDefinition |
toExpressionDefinition(org.apache.camel.Predicate predicate)
Determines which
ExpressionDefinition describes the given
predicate best possible. |
public static ExpressionDefinition toExpressionDefinition(org.apache.camel.Expression expression)
ExpressionDefinition
describes the given
expression best possible.
This implementation will use types such as SimpleExpression
,
XPathExpression
etc. if the given expression is detect as such a
type.expression
- the expressionpublic static ExpressionDefinition toExpressionDefinition(org.apache.camel.Predicate predicate)
ExpressionDefinition
describes the given
predicate best possible.
This implementation will use types such as SimpleExpression
,
XPathExpression
etc. if the given predicate is detect as such a
type.predicate
- the predicateApache Camel