docs/versions/7.5.0/rules/lib/builtins/fragments.mdx
{% dynamic setvar source_file "src/main/java/com/google/devtools/build/lib/starlarkbuildapi/FragmentCollectionApi.java" %} {% dynamic setvar version "7.5.0" %} {% dynamic setvar original_path "/rules/lib/builtins/fragments" %} {% include "_buttons.html" %}
<!-- {% raw %} -->A collection of configuration fragments available in the current rule implementation context. Access a specific fragment by its field name. For example, <code>ctx.fragments.java</code> <p>Only configuration fragments which are declared in the rule definition may be accessed in this collection.</p><p>See the <a href="../fragments.html">configuration fragment reference</a> for a list of available fragments and the <a href="https://bazel.build/versions/7.5.0/extending/rules#configuration_fragments">rules documentation</a> for how to use them.
</body> </html> <!-- {% endraw %} -->