6667686970717273
if(result instanceof Boolean && (Boolean)result) { return true; } else return false; } catch (Exception e) { throw new RuntimeExpressionException("环节分支线表达式【"+expression+"】解析不正确", e); } }
127128129130131132133134
case String: default: return evaluateAsString(exchange); } } catch (Exception e) { throw new RuntimeExpressionException(e); } }
187188189190191192193194
public boolean matches(Exchange exchange) { try { List list = evaluateAsList(exchange); return matches(exchange, list); } catch (Exception e) { throw new RuntimeExpressionException(e); } }
140141142143144145146147
212213214215216217218219
LOG.debug("Matches: {} for exchange: {}", expression, exchange); try { List<?> list = evaluateAsList(exchange); return matches(exchange, list); } catch (Exception e) { throw new RuntimeExpressionException(e); } }
112113114115116117118119
list = Collections.singletonList(in.getBody()); } try { return query.execute(list).getResults(); } catch (QueryExecutionException e) { throw new RuntimeExpressionException(e); } }
8687888990919293
131132133134135136137138
public boolean matches(E exchange) { try { List list = evaluateAsList(exchange); return matches(exchange, list); } catch (Exception e) { throw new RuntimeExpressionException(e); } }
191192193194195196197198