Interface IFlattenCallPredicate
-
- All Known Implementing Classes:
DefaultFlattenCallPredicate,DontFlattenDisjunctive,DontFlattenIncrementalPredicate,IFlattenCallPredicate.And,NeverFlattenCallPredicate
public interface IFlattenCallPredicateInterface used by the PQueryFlattener to decide which positive pattern calls to flatten
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIFlattenCallPredicate.AndFlattens only if all operand predicates vote for flattening.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanshouldFlatten(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
-
-