docs: public void ifHasMemberWithTag(String template, Properties attributes) throws XDocletException
      {
          ArrayList allMemberNames = new ArrayList();
          HashMap allMembers = new HashMap();
          boolean hasTag = false;
  
          addMembers(allMemberNames, allMembers, getCurrentClass(), null, null, null);
          for (Iterator it = allMemberNames.iterator(); it.hasNext(); ) {
              XMember member = (XMember) allMembers.get(it.next());
  
              if (member instanceof XField) {
                  setCurrentField((XField)member);
                  if (hasTag(attributes, FOR_FIELD)) {
                      hasTag = true;
                  }
                  setCurrentField(null);
              }
              else if (member instanceof XMethod) {
                  setCurrentMethod((XMethod)member);
                  if (hasTag(attributes, FOR_METHOD)) {
                      hasTag = true;
                  }
                  setCurrentMethod(null);
              }
              if (hasTag) {
                  generate(template);
                  break;
              }
          }
      }