org.eclipse.viatra.query.tooling.core.generator.fragments

## Interface IGenerationFragmentProvider

- All Known Implementing Classes:
    ExtensionBasedGenerationFragmentProvider

      public interface IGenerationFragmentProvider

  An interface for collecting code generation fragments for specific patterns. The concrete value is injected using the pattern language UI injectors.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Iterable<IGenerationFragment>` | `getAllFragments()` Collects all `IGenerationFragment`.
    `org.eclipse.core.resources.IProject` | `getFragmentProject(org.eclipse.core.resources.IProject modelProject, IGenerationFragment fragment)` Returns the fragment project for the `IGenerationFragment` based on the modelProject.
    `java.lang.Iterable<IGenerationFragment>` | `getFragmentsForPattern(Pattern pattern)` Collects the generation fragments applicable for a selected pattern.

- - ### Method Detail

    - #### getFragmentsForPattern

          java.lang.Iterable<IGenerationFragment> getFragmentsForPattern(Pattern pattern)

      Collects the generation fragments applicable for a selected pattern.
      Parameters:
        `pattern` -
      Returns:
        a non-null collection of code generation fragments. May be empty.

    - #### getAllFragments

          java.lang.Iterable<IGenerationFragment> getAllFragments()

      Collects all `IGenerationFragment`.
      Returns:
        a non-null collection of code generation fragments.

    - #### getFragmentProject

          org.eclipse.core.resources.IProject getFragmentProject(org.eclipse.core.resources.IProject modelProject,
                                                                 IGenerationFragment fragment)

      Returns the fragment project for the `IGenerationFragment` based on the modelProject.
      Parameters:
        `modelProject` -
        `fragment` -