Class makeListFunction

java.lang.Object
org.apache.activemq.filter.function.makeListFunction
All Implemented Interfaces:
FilterFunction

public class makeListFunction extends Object implements FilterFunction
Filter function that creates a list with each argument being one element in the list. For example:

MAKELIST( '1', '2', '3' )

  • Constructor Details

    • makeListFunction

      public makeListFunction()
  • Method Details

    • isValid

      public boolean isValid(FunctionCallExpression expr)
      Check whether the given expression is a valid call of this function. Any number of arguments is accepted.
      Specified by:
      isValid in interface FilterFunction
      Parameters:
      expr - - the expression consisting of a call to this function.
      Returns:
      true - if the expression is valid; false - otherwise.
    • returnsBoolean

      public boolean returnsBoolean(FunctionCallExpression expr)
      Indicate that this function never evaluates to a Boolean result.
      Specified by:
      returnsBoolean in interface FilterFunction
      Parameters:
      expr - - the expression consisting of a call to this function.
      Returns:
      false - this Filter Function never evaluates to a Boolean.
    • evaluate

      public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message) throws jakarta.jms.JMSException
      Evalutate the given expression, which consists of a call to this function, in the context given. Creates a list containing the evaluated results of its argument expressions.
      Specified by:
      evaluate in interface FilterFunction
      Parameters:
      expr - - the expression consisting of a call to this function.
      message - - the context in which the call is being evaluated.
      Returns:
      java.util.List - the result of the evaluation.
      Throws:
      jakarta.jms.JMSException