code: public NameAndTypeConstant getNameAndType(String name, String type)
    {
      for (int i = 0; i < _entries.size(); i++) {
        ConstantPoolEntry entry = _entries.get(i);
  
        if (! (entry instanceof NameAndTypeConstant))
          continue;
  
        NameAndTypeConstant methodEntry = (NameAndTypeConstant) entry;
  
        if (methodEntry.getName().equals(name) &&
            methodEntry.getType().equals(type))
          return methodEntry;
      }
  
      return null;
    }
docs: Gets a name-and-type constant.