public class InfixFilterLanguageSupport implements FilterLanguageSupport<String> {
@Override
public EventFilter convert(String filter) throws InvalidFilterException {
try {
final Predicate<Object> predicate = new InfixCompiler().compile(filter);
return new InfixEventFilter(predicate, filter);
} catch (Exception e) {
throw new InvalidFilterException("Error compiling filter : " + StringUtils.abbreviate(filter, 100), e, null);
}
}