code: def classpath_contents(cls, targets, classpath_products, confs=('default',)):
      
      classpath_iter = cls._classpath_iter(
        classpath_products.get_for_targets(targets),
        confs=confs,
      )
      for f in cls.classpath_entries_contents(classpath_iter):
        yield f
docs: Provide a generator over the contents (classes/resources) of a classpath.
  
      :param targets: Targets to iterate the contents classpath for.
      :param ClasspathProducts classpath_products: Product containing classpath elements.
      :param confs: The list of confs for use by this classpath.
      :returns: An iterator over all classpath contents, one directory, class or resource relative
                path per iteration step.
      :rtype: :class:`collections.Iterator` of string