org.eclipse.viatra.query.runtime.matchers.psystem.rewriters

## Interface IFlattenCallPredicate

- All Known Implementing Classes:
    DefaultFlattenCallPredicate, DontFlattenIncrementalPredicate, NeverFlattenCallPredicate

      public interface IFlattenCallPredicate

  Interface used by the PQueryFlattener to decide which pattern calls to flatten

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `shouldFlatten(PositivePatternCall positivePatternCall)` Decides whether the called query by the pattern call should be flattened into the caller or not.

- - ### Method Detail

    - #### shouldFlatten

          boolean shouldFlatten(PositivePatternCall positivePatternCall)

      Decides whether the called query by the pattern call should be flattened into the caller or not.
      Parameters:
        `positivePatternCall` - the pattern call
      Returns:
        true if the call should be flattened