Interface Language


public interface Language
Represents a language to be used for Expression or Predicate instances
  • Method Details

    • 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 properties

      This 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 expression
      properties - 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 properties

      This 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 expression
      properties - configuration properties (optimized as object array with hardcoded positions for properties)
      Returns:
      the created expression