code: public final int getConstantIndex(String constant)
      {
          int nameIndex = getNameIndex(constant);
          for (ConstantInfo ci : listConstantInfo(ConstantString.class))
          {
              ConstantString ic = (ConstantString) ci;
              if (nameIndex == ic.getString_index())
              {
                  return constantPoolIndexMap.get(ci);
              }
          }
          return -1;
      }
docs: Returns the constant map index to constant
  @param constant
  @return