Return true if this node or any of its children recursively match the supplied pattern
pattern
bool contains(Pattern pattern);