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 Summary
Constructors Constructor Description makeListFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectevaluate(FunctionCallExpression expr, MessageEvaluationContext message)Evalutate the given expression, which consists of a call to this function, in the context given.booleanisValid(FunctionCallExpression expr)Check whether the given expression is a valid call of this function.booleanreturnsBoolean(FunctionCallExpression expr)Indicate that this function never evaluates to a Boolean result.
-
-
-
Method Detail
-
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:
isValidin interfaceFilterFunction- 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:
returnsBooleanin 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 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:
evaluatein 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:
JMSException
-
-