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

## Interface IFlattenCallPredicate

- All Known Implementing Classes:
    DefaultFlattenCallPredicate, DontFlattenDisjunctive, DontFlattenIncrementalPredicate, IFlattenCallPredicate.And, NeverFlattenCallPredicate

      public interface IFlattenCallPredicate

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

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `IFlattenCallPredicate.And` Flattens only if all operand predicates vote for flattening.

  - ### 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