code: public final void setTypeName(final String typeName) {
          if (typeName == null) {
              type = LOOKING_AT;
          } else if (typeName.equalsIgnoreCase(TYPES[0])) {
              type = MATCHES;
          } else if (typeName.equalsIgnoreCase(TYPES[1])) {
              type = LOOKING_AT;
          } else if (typeName.equalsIgnoreCase(TYPES[2])) {
              type = FIND;
          }
      }
docs: Sets the type name of the matching.
  
  @param typeName
  Type name ("matches", "lookingAt" or "find") or NULL (="lookingAt")