Package org.apache.camel.spi
Interface Language
-
public interface Language
Represents a language to be used forExpression
orPredicate
instances
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Expression
createExpression(String expression)
Creates an expression based on only the given string inputdefault Expression
createExpression(String expression, Object[] properties)
Creates an expression based on the input with propertiesPredicate
createPredicate(String expression)
Creates a predicate based on only the given string inputdefault Predicate
createPredicate(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
-
-