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

## Class PQueryFlattener

- java.lang.Object
- - org.eclipse.viatra.query.runtime.matchers.psystem.rewriters.AbstractRewriterTraceSource
  - - org.eclipse.viatra.query.runtime.matchers.psystem.rewriters.PDisjunctionRewriter
    - - org.eclipse.viatra.query.runtime.matchers.psystem.rewriters.PQueryFlattener

-     public class PQueryFlattener
      extends PDisjunctionRewriter

  This rewriter class holds the query flattening logic

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PQueryFlattener​(IFlattenCallPredicate flattenCallPredicate)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `PDisjunction` | `rewrite​(PDisjunction disjunction)` |

    - ### Methods inherited from class org.eclipse.viatra.query.runtime.matchers.psystem.rewriters.PDisjunctionRewriter

      `rewrite`

    - ### Methods inherited from class org.eclipse.viatra.query.runtime.matchers.psystem.rewriters.AbstractRewriterTraceSource

      `addTrace, derivativeRemoved, getTraceCollector, getTraces, setTraceCollector`

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

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

- - ### Constructor Detail

    - #### PQueryFlattener

          public PQueryFlattener​(IFlattenCallPredicate flattenCallPredicate)

  - ### Method Detail

    - #### rewrite

          public PDisjunction rewrite​(PDisjunction disjunction)

      Specified by:
        `rewrite` in class `PDisjunctionRewriter`