code: boolean matches(StartElement element) {
          for (ElementConstraint constraint : getConstraints()) {
              if (!constraint.matches(element)) return false;
          }
          return true;
      }
docs: Test whether this element satisfies the selector condition,
  not including any conditions imposed by constraints (which
  are checked separately).
  @param element
  @return