code: public StringConstant addString(String name)
    {
      StringConstant entry = getString(name);
  
      if (entry != null) {
        return entry;
      }
  
      Utf8Constant utf8 = addUTF8(name);
  
      entry = new StringConstant(this, _entries.size(), utf8.getIndex());
  
      addConstant(entry);
  
      return entry;
    }
docs: Adds a string constant.