@Test public void testStringToUppercase() { Selector selector = buildSelector("someString.toUpperCase() == 'FOOBAR'"); assertTrue(selector.evaluate(source)); }
@Override public boolean evaluate(final VariableSource source) { return TRUE.equals(expression.evaluate(asJexlContext(source))); }
JexlSelector implements Selector { @Override public boolean evaluate(final VariableSource source) { return TRUE.equals(expression.evaluate(asJexlContext(source))); } }
JexlSelector implements Selector { @Override public boolean evaluate(final VariableSource source) { return TRUE.equals(expression.evaluate(asJexlContext(source))); } JexlSelector(final JexlExpression expression); }
JexlSelector implements Selector { @Override public boolean evaluate(final VariableSource source) { return TRUE.equals(expression.evaluate(asJexlContext(source))); } JexlSelector(final JexlExpression expression); @Override boolean evaluate(final VariableSource source); @Override void toSql(final SelectorSqlBuilder sqlBuilder); @Override String toString(); }
JexlSelector implements Selector { @Override public boolean evaluate(final VariableSource source) { return TRUE.equals(expression.evaluate(asJexlContext(source))); } JexlSelector(final JexlExpression expression); @Override boolean evaluate(final VariableSource source); @Override void toSql(final SelectorSqlBuilder sqlBuilder); @Override String toString(); static final String TYPE; }