Class BooleanFunctionCallExpr

java.lang.Object
org.apache.activemq.filter.FunctionCallExpression
org.apache.activemq.filter.BooleanFunctionCallExpr
All Implemented Interfaces:
BooleanExpression, Expression

public class BooleanFunctionCallExpr extends FunctionCallExpression implements BooleanExpression
Function call expression that evaluates to a boolean value. Selector parsing requires BooleanExpression objects for Boolean expressions, such as operands to AND, and as the final result of a selector. This provides that interface for function call expressions that resolve to Boolean values.

If a function can return different types at evaluation-time, the function implementation needs to decide whether it supports casting to Boolean at parse-time.

See Also:
  • Constructor Details

  • Method Details

    • matches

      public boolean matches(MessageEvaluationContext message_ctx) throws jakarta.jms.JMSException
      Evaluate the function call expression, in the given context, and return an indication of whether the expression "matches" (i.e. evaluates to true).
      Specified by:
      matches in interface BooleanExpression
      Parameters:
      message_ctx - - message context against which the expression will be evaluated.
      Returns:
      the boolean evaluation of the function call expression.
      Throws:
      jakarta.jms.JMSException