} else if ("Class".equals(qName)) { String role = getOptionalAttribute(attributes, "role"); addMatcher(new ClassMatcher(getRequiredAttribute(attributes, "name", qName), role)); } else if ("Type".equals(qName)) { String role = getOptionalAttribute(attributes, "role"); String pName = getRequiredAttribute(attributes, "name", qName); pName = pName.startsWith("~") ? pName : "~" + pName.replace(".", "\\."); addMatcher(new ClassMatcher(pName + "\\.[^.]+")); } else if ("Method".equals(qName)) { String name = getOptionalAttribute(attributes, "name"); addMatcher(new ClassMatcher("~" + classregex)); } else if (classMatch != null) { addMatcher(new ClassMatcher(classMatch));
return new BugMatcher(null, null, value); case CLASS: return new ClassMatcher(value); case DESIGNATION: return new DesignationMatcher(value); return new LastVersionMatcher(value, RelationalOp.EQ); case PACKAGE: return new ClassMatcher("~" + value + "\\.[^.]+"); case PRIORITY: return new PriorityMatcher(value);
return new BugMatcher(null, null, s.getFrom(bug)); case CLASS: return new ClassMatcher(s.getFrom(bug)); case DESIGNATION: return new DesignationMatcher(s.getFrom(bug)); p = p.substring(0, lastDot); return new ClassMatcher("~" + p + "\\.[^.]+"); case PRIORITY: return new PriorityMatcher(Integer.toString(bug.getPriority()));
} else if ("Class".equals(qName)) { String role = getOptionalAttribute(attributes, "role"); addMatcher(new ClassMatcher(getRequiredAttribute(attributes, "name", qName), role)); } else if ("Type".equals(qName)) { String role = getOptionalAttribute(attributes, "role"); String pName = getRequiredAttribute(attributes, "name", qName); pName = pName.startsWith("~") ? pName : "~" + pName.replace(".", "\\."); addMatcher(new ClassMatcher(pName + "\\.[^.]+")); } else if ("Method".equals(qName)) { String name = getOptionalAttribute(attributes, "name"); addMatcher(new ClassMatcher("~" + classregex)); } else if (classMatch != null) { addMatcher(new ClassMatcher(classMatch));