@Test public void testPackageImport() { AndExpression expr = (AndExpression) new FilterParser().parse("(&(osgi.wiring.package=org.mypackage)(version>=1.9.0)(!(version>=2.0.0)))"); Assert.assertEquals(3, expr.expressions.length); checkItem(expr.expressions[0], "osgi.wiring.package", FilterType.equal, "org.mypackage"); checkItem(expr.expressions[1], "version", FilterType.gt, "1.9.0"); NotExpression notVersion = (NotExpression)expr.expressions[2]; checkItem(notVersion.expression, "version", FilterType.gt, "2.0.0"); }
public Expression parse(String filter) { return parse(new ExprTokenizer(filter)); }
FilterParser { public Expression parse(String filter) { return parse(new ExprTokenizer(filter)); } }
FilterParser { public Expression parse(String filter) { return parse(new ExprTokenizer(filter)); }  }
FilterParser { public Expression parse(String filter) { return parse(new ExprTokenizer(filter)); }  Expression parse(String filter); }
FilterParser { public Expression parse(String filter) { return parse(new ExprTokenizer(filter)); }  Expression parse(String filter);  }