def match(self, cond, node):
op, args = cond<EOL>if op == '<STR_LIT>':<EOL><INDENT>for arg in args:<EOL><INDENT>if not self.match(arg, node):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL><DEDENT>if op == '<STR_LIT>':<EOL><INDENT>for arg in args:<EOL><INDENT>if self.match(arg, node):<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL><DEDENT>comparator = self.comparators.get(op)<EOL>if comparator:<EOL><INDENT>attribute, value = args<EOL>targetValue = node.getAttr(attribute)<EOL>return comparator.compare(targetValue, value)<EOL><DEDENT>raise NoSuchComparatorException(op, '<STR_LIT>')<EOL>
See Also: :py:meth:`IMatcher.match <poco.sdk.DefaultMatcher.IMatcher.match>`