public boolean matches(LogEntry entry) throws FilterException { Object last = null; for (Arg a : args) { Object v = a.getValue(); if (a.getType() == FilterOp.ArgType.SYMBOL) { String key = (String)a.getValue(); v = entry.getAttribute(key); } if (last != null && !last.equals(v)) { return false; } last = v; } return true; }
public boolean matches(LogEntry entry) throws FilterException { int count = 0; for (FilterOp f : subOps) { if (f.matches(entry)) { count++; if (count > 1) { return false; } } } if (count == 1) { return true; } return false; }
public boolean matches(LogEntry entry) throws FilterException { for (FilterOp f : subOps) { if (!f.matches(entry)) { return false; } } return true; }
public boolean matches(LogEntry entry) throws FilterException { for (FilterOp f : subOps) { if (f.matches(entry)) { return true; } } return false; }