Class makeListFunction
java.lang.Object
org.apache.activemq.filter.function.makeListFunction
- All Implemented Interfaces:
FilterFunction
Filter function that creates a list with each argument being one element in the list.
For example:
MAKELIST( '1', '2', '3' )
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(FunctionCallExpression expr, MessageEvaluationContext message) Evalutate the given expression, which consists of a call to this function, in the context given.boolean
Check whether the given expression is a valid call of this function.boolean
Indicate that this function never evaluates to a Boolean result.
-
Constructor Details
-
makeListFunction
public makeListFunction()
-
-
Method Details
-
isValid
Check whether the given expression is a valid call of this function. Any number of arguments is accepted.- Specified by:
isValid
in interfaceFilterFunction
- Parameters:
expr
- - the expression consisting of a call to this function.- Returns:
- true - if the expression is valid; false - otherwise.
-
returnsBoolean
Indicate that this function never evaluates to a Boolean result.- Specified by:
returnsBoolean
in interfaceFilterFunction
- 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 interfaceFilterFunction
- 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
-