Class AnyChildWithRestMatcher

  • All Implemented Interfaces:
    ExpressionChildrenMatcher

    @API(EXPERIMENTAL)
    public class AnyChildWithRestMatcher
    extends Object
    implements ExpressionChildrenMatcher
    An expression matcher that tries to match any child to the given ExpressionMatcher while providing a ReferenceMatcher binding to all other children. This can be quite useful when matching to a planner expression that might have an unbounded number of children when a planner rule wants to inspect exactly one of those children deeply. This matcher might produce several possible bindings because the ExpressionMatcher for the distinguished child might match several children.