Class IFlattenCallPredicate.And

java.lang.Object
tools.refinery.interpreter.matchers.psystem.rewriters.IFlattenCallPredicate.And
All Implemented Interfaces:
IFlattenCallPredicate
Enclosing interface:
IFlattenCallPredicate

public static class IFlattenCallPredicate.And extends Object implements IFlattenCallPredicate
Flattens only if all operand predicates vote for flattening.
Since:
2.1
  • Constructor Details

  • Method Details

    • 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