public class inListFunction extends Object implements FilterFunction
INLIST( SPLIT('1,2,3', ',') , '2' )
Note that the first argument must be a List. Strings containing lists are not acceptable; for example, INLIST('1,2,3', '1'), will cause an exception to be thrown at evaluation-time.Constructor and Description |
---|
inListFunction() |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(FunctionCallExpression expr,
MessageEvaluationContext message_ctx)
Evalutate the given expression, which consists of a call to this function, in the context given.
|
boolean |
isValid(FunctionCallExpression expr)
Check whether the given expression is a valid call of this function.
|
boolean |
returnsBoolean(FunctionCallExpression expr)
Check whether the given expression, which consists of a call to this function, evaluates to a Boolean.
|
public inListFunction()
public boolean isValid(FunctionCallExpression expr)
isValid
in interface FilterFunction
expr
- - the expression consisting of a call to this function.public boolean returnsBoolean(FunctionCallExpression expr)
returnsBoolean
in interface FilterFunction
expr
- - the expression consisting of a call to this function.public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message_ctx) throws JMSException
evaluate
in interface FilterFunction
expr
- - the expression consisting of a call to this function.message_ctx
- - the context in which the call is being evaluated.JMSException
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.