Interface IFlattenCallPredicate
- All Known Implementing Classes:
DefaultFlattenCallPredicate
,IFlattenCallPredicate.And
,NeverFlattenCallPredicate
public interface IFlattenCallPredicate
Interface used by the PQueryFlattener to decide which positive pattern calls to flatten
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Flattens only if all operand predicates vote for flattening. -
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldFlatten
(PositivePatternCall positivePatternCall) Decides whether the called query by the pattern call should be flattened into the caller or not.
-
Method Details
-
shouldFlatten
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
-