Package org.apache.camel.spi
Interface Language
-
public interface LanguageRepresents a language to be used forExpressionorPredicateinstances
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExpressioncreateExpression(String expression)Creates an expression based on only the given string inputdefault ExpressioncreateExpression(String expression, Object[] properties)Creates an expression based on the input with propertiesPredicatecreatePredicate(String expression)Creates a predicate based on only the given string inputdefault PredicatecreatePredicate(String expression, Object[] properties)Creates an expression based on the input with properties
-
-
-
Method Detail
-
createPredicate
Predicate createPredicate(String expression)
Creates a predicate based on only the given string input- Parameters:
expression- the expression as a string input- Returns:
- the created predicate
-
createExpression
Expression createExpression(String expression)
Creates an expression based on only the given string input- Parameters:
expression- the expression as a string input- Returns:
- the created expression
-
createPredicate
default Predicate createPredicate(String expression, Object[] properties)
Creates an expression based on the input with propertiesThis is used for languages that have been configured with custom properties most noticeable for xpath/xquery/tokenizer languages that have several options.
- Parameters:
expression- the expressionproperties- configuration properties (optimized as object array with hardcoded positions for properties)- Returns:
- the created predicate
-
createExpression
default Expression createExpression(String expression, Object[] properties)
Creates an expression based on the input with propertiesThis is used for languages that have been configured with custom properties most noticeable for xpath/xquery/tokenizer languages that have several options.
- Parameters:
expression- the expressionproperties- configuration properties (optimized as object array with hardcoded positions for properties)- Returns:
- the created expression
-
-