Package org.apache.camel.spi
Interface Language
public interface Language
Represents a language to be used for
Expression or Predicate instances-
Method Summary
Modifier and TypeMethodDescriptioncreateExpression(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 propertiescreatePredicate(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 Details
-
createPredicate
Creates a predicate based on only the given string input- Parameters:
expression- the expression as a string input- Returns:
- the created predicate
-
createExpression
Creates an expression based on only the given string input- Parameters:
expression- the expression as a string input- Returns:
- the created expression
-
createPredicate
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
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
-