Class BinaryExpressionMatcher.Commutative<T extends BinaryExpression>

Type Parameters:
T - the type of expression matched
All Implemented Interfaces:
ExpressionMatcher<T>
Enclosing class:
BinaryExpressionMatcher<T extends BinaryExpression>

public static class BinaryExpressionMatcher.Commutative<T extends BinaryExpression> extends BinaryExpressionMatcher<T>
A matcher for binary expression allowing commutativity

This behaves the same as BinaryExpressionMatcher, but if the first attempt fails, the operand match is re-attempted with the operands swapped.