/** * Evalutate the given expression, which consists of a call to this function, in the context given. Checks * whether the second argument is a member of the list in the first argument. * * @param expr - the expression consisting of a call to this function. * @param message_ctx - the context in which the call is being evaluated. * @return Boolean - the result of the evaluation. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message_ctx) throws javax.jms.JMSException { java.util.List arr; int cur; Object cand; boolean found_f; arr = (java.util.List) expr.getArgument(0).evaluate(message_ctx); cand = expr.getArgument(1).evaluate(message_ctx); cur = 0; found_f = false; while ((cur < arr.size()) && (!found_f)) { found_f = arr.get(cur).equals(cand); cur++; } return Boolean.valueOf(found_f); } }
/** * Evaluate the given expression for this function in the given context. The result of the evaluation is a * string with all matches of the regular expression, from the evaluation of the second argument, replaced by * the string result from the evaluation of the third argument. Replacement is performed by * String#replaceAll(). * <p/> * Note that all three arguments must be Strings. * * @param expr - the expression consisting of a call to this function. * @return String - the result of the replacement. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message_ctx) throws javax.jms.JMSException { String src; String match_regex; String repl_lit; String result; src = (String) expr.getArgument(0).evaluate(message_ctx); match_regex = (String) expr.getArgument(1).evaluate(message_ctx); repl_lit = (String) expr.getArgument(2).evaluate(message_ctx); result = src.replaceAll(match_regex, repl_lit); return result; } }
String[] result; src = (String) expr.getArgument(0).evaluate(message_ctx); split_pat = (String) expr.getArgument(1).evaluate(message_ctx); limit = (Integer) expr.getArgument(2).evaluate(message_ctx);
/** * 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. * * @param expr - the expression consisting of a call to this function. * @param message_ctx - the context in which the call is being evaluated. * @return java.util.List - the result of the evaluation. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message) throws javax.jms.JMSException { java.util.ArrayList ele_arr; int num_arg; int cur; num_arg = expr.getNumArguments(); ele_arr = new java.util.ArrayList(num_arg); cur = 0; while (cur < num_arg) { ele_arr.add(expr.getArgument(cur).evaluate(message)); cur++; } return (java.util.List) ele_arr; } }
reg = expr.getArgument(0).evaluate(message); cand = expr.getArgument(1).evaluate(message);
/** * Evaluate the given expression for this function in the given context. The result of the evaluation is a * string with all matches of the regular expression, from the evaluation of the second argument, replaced by * the string result from the evaluation of the third argument. Replacement is performed by * String#replaceAll(). * <p/> * Note that all three arguments must be Strings. * * @param expr - the expression consisting of a call to this function. * @return String - the result of the replacement. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message_ctx) throws javax.jms.JMSException { String src; String match_regex; String repl_lit; String result; src = (String) expr.getArgument(0).evaluate(message_ctx); match_regex = (String) expr.getArgument(1).evaluate(message_ctx); repl_lit = (String) expr.getArgument(2).evaluate(message_ctx); result = src.replaceAll(match_regex, repl_lit); return result; } }
/** * Evaluate the given expression for this function in the given context. The result of the evaluation is a * string with all matches of the regular expression, from the evaluation of the second argument, replaced by * the string result from the evaluation of the third argument. Replacement is performed by * String#replaceAll(). * <p/> * Note that all three arguments must be Strings. * * @param expr - the expression consisting of a call to this function. * @return String - the result of the replacement. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message_ctx) throws javax.jms.JMSException { String src; String match_regex; String repl_lit; String result; src = (String) expr.getArgument(0).evaluate(message_ctx); match_regex = (String) expr.getArgument(1).evaluate(message_ctx); repl_lit = (String) expr.getArgument(2).evaluate(message_ctx); result = src.replaceAll(match_regex, repl_lit); return result; } }
/** * Evalutate the given expression, which consists of a call to this function, in the context given. Checks * whether the second argument is a member of the list in the first argument. * * @param expr - the expression consisting of a call to this function. * @param message_ctx - the context in which the call is being evaluated. * @return Boolean - the result of the evaluation. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message_ctx) throws javax.jms.JMSException { java.util.List arr; int cur; Object cand; boolean found_f; arr = (java.util.List) expr.getArgument(0).evaluate(message_ctx); cand = expr.getArgument(1).evaluate(message_ctx); cur = 0; found_f = false; while ((cur < arr.size()) && (!found_f)) { found_f = arr.get(cur).equals(cand); cur++; } return Boolean.valueOf(found_f); } }
/** * Evalutate the given expression, which consists of a call to this function, in the context given. Checks * whether the second argument is a member of the list in the first argument. * * @param expr - the expression consisting of a call to this function. * @param message_ctx - the context in which the call is being evaluated. * @return Boolean - the result of the evaluation. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message_ctx) throws javax.jms.JMSException { java.util.List arr; int cur; Object cand; boolean found_f; arr = (java.util.List) expr.getArgument(0).evaluate(message_ctx); cand = expr.getArgument(1).evaluate(message_ctx); cur = 0; found_f = false; while ((cur < arr.size()) && (!found_f)) { found_f = arr.get(cur).equals(cand); cur++; } return Boolean.valueOf(found_f); } }
/** * Evaluate the given expression for this function in the given context. The result of the evaluation is a * string with all matches of the regular expression, from the evaluation of the second argument, replaced by * the string result from the evaluation of the third argument. Replacement is performed by * String#replaceAll(). * <p/> * Note that all three arguments must be Strings. * * @param expr - the expression consisting of a call to this function. * @return String - the result of the replacement. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message_ctx) throws javax.jms.JMSException { String src; String match_regex; String repl_lit; String result; src = (String) expr.getArgument(0).evaluate(message_ctx); match_regex = (String) expr.getArgument(1).evaluate(message_ctx); repl_lit = (String) expr.getArgument(2).evaluate(message_ctx); result = src.replaceAll(match_regex, repl_lit); return result; } }
/** * Evalutate the given expression, which consists of a call to this function, in the context given. Checks * whether the second argument is a member of the list in the first argument. * * @param expr - the expression consisting of a call to this function. * @param message_ctx - the context in which the call is being evaluated. * @return Boolean - the result of the evaluation. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message_ctx) throws javax.jms.JMSException { java.util.List arr; int cur; Object cand; boolean found_f; arr = (java.util.List) expr.getArgument(0).evaluate(message_ctx); cand = expr.getArgument(1).evaluate(message_ctx); cur = 0; found_f = false; while ((cur < arr.size()) && (!found_f)) { found_f = arr.get(cur).equals(cand); cur++; } return Boolean.valueOf(found_f); } }
String[] result; src = (String) expr.getArgument(0).evaluate(message_ctx); split_pat = (String) expr.getArgument(1).evaluate(message_ctx); limit = (Integer) expr.getArgument(2).evaluate(message_ctx);
String[] result; src = (String) expr.getArgument(0).evaluate(message_ctx); split_pat = (String) expr.getArgument(1).evaluate(message_ctx); limit = (Integer) expr.getArgument(2).evaluate(message_ctx);
/** * 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. * * @param expr - the expression consisting of a call to this function. * @param message_ctx - the context in which the call is being evaluated. * @return java.util.List - the result of the evaluation. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message) throws javax.jms.JMSException { java.util.ArrayList ele_arr; int num_arg; int cur; num_arg = expr.getNumArguments(); ele_arr = new java.util.ArrayList(num_arg); cur = 0; while (cur < num_arg) { ele_arr.add(expr.getArgument(cur).evaluate(message)); cur++; } return (java.util.List) ele_arr; } }
String[] result; src = (String) expr.getArgument(0).evaluate(message_ctx); split_pat = (String) expr.getArgument(1).evaluate(message_ctx); limit = (Integer) expr.getArgument(2).evaluate(message_ctx);
/** * 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. * * @param expr - the expression consisting of a call to this function. * @param message_ctx - the context in which the call is being evaluated. * @return java.util.List - the result of the evaluation. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message) throws javax.jms.JMSException { java.util.ArrayList ele_arr; int num_arg; int cur; num_arg = expr.getNumArguments(); ele_arr = new java.util.ArrayList(num_arg); cur = 0; while (cur < num_arg) { ele_arr.add(expr.getArgument(cur).evaluate(message)); cur++; } return (java.util.List) ele_arr; } }
/** * 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. * * @param expr - the expression consisting of a call to this function. * @param message_ctx - the context in which the call is being evaluated. * @return java.util.List - the result of the evaluation. */ public Object evaluate(FunctionCallExpression expr, MessageEvaluationContext message) throws javax.jms.JMSException { java.util.ArrayList ele_arr; int num_arg; int cur; num_arg = expr.getNumArguments(); ele_arr = new java.util.ArrayList(num_arg); cur = 0; while (cur < num_arg) { ele_arr.add(expr.getArgument(cur).evaluate(message)); cur++; } return (java.util.List) ele_arr; } }
reg = expr.getArgument(0).evaluate(message); cand = expr.getArgument(1).evaluate(message);
reg = expr.getArgument(0).evaluate(message); cand = expr.getArgument(1).evaluate(message);
reg = expr.getArgument(0).evaluate(message); cand = expr.getArgument(1).evaluate(message);