org.eclipse.incquery.runtime.matchers.psystem.rewriters

## Class DefaultFlattenCallPredicate

- java.lang.Object
- - org.eclipse.incquery.runtime.matchers.psystem.rewriters.DefaultFlattenCallPredicate

- All Implemented Interfaces:
    IFlattenCallPredicate

      public class DefaultFlattenCallPredicate
      extends java.lang.Object
      implements IFlattenCallPredicate

  Author:
    Marton Bur

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultFlattenCallPredicate()`

  - ### Method Summary

    All Methods Instance Methods Concrete 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.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultFlattenCallPredicate

          public DefaultFlattenCallPredicate()

  - ### Method Detail

    - #### shouldFlatten

          public boolean shouldFlatten(PositivePatternCall positivePatternCall)

      Description copied from interface: `IFlattenCallPredicate`
      Decides whether the called query by the pattern call should be flattened into the caller or not.
      Specified by:
        `shouldFlatten` in interface `IFlattenCallPredicate`
      Parameters:
        `positivePatternCall` - the pattern call
      Returns:
        true if the call should be flattened