ExpressionRecordFilter implements RecordFilter { public static RecordFilter create(Header header, String expr) throws ParseException { HeaderNamespace namespace = new HeaderNamespace(header); ParserImpl parser = new ParserImpl(namespace, false); return new ExpressionRecordFilter(new RecordEvalEnv(namespace), parser.parse(expr)); } private  ExpressionRecordFilter(RecordEvalEnv recordEvalEnv, Term compiledExpr); static RecordFilter create(Header header, String expr); @Override boolean accept(Record record);  }
@Test(expected = ParseException.class) public void testExprFilterIllegalExpr() throws ParseException { Header header = new TestHeader("ch"); ExpressionRecordFilter.create(header, "chl.min > 2.0"); }