public static int parseTokenizerStateModifiers(Stella_Object modifier) {
    if (Surrogate.subtypeOfP(Stella_Object.safePrimaryType(modifier), Stella.SGT_STELLA_GENERALIZED_SYMBOL)) {
      { GeneralizedSymbol modifier000 = ((GeneralizedSymbol)(modifier));

        { String testValue000 = modifier000.symbolName;

          if (Stella.stringEqlP(testValue000, "*")) {
            return (2);
          }
          else if (Stella.stringEqlP(testValue000, "!") ||
              (Stella.stringEqlP(testValue000, "*!") ||
               Stella.stringEqlP(testValue000, "!*"))) {
            return (3);
          }
          else {
            return (0);
          }
        }
      }
    }
    else {
      return (0);
    }
  }