A predicate DSL for matching javac AST nodes.
-
Matchers.compoundAssignment(com.sun.source.tree.Tree.Kind operator,
Matcher<com.sun.source.tree.ExpressionTree> leftOperandMatcher,
Matcher<com.sun.source.tree.ExpressionTree> rightOperandMatcher)
Matches a compound assignment operator AST node which matches a given left-operand matcher, a
given right-operand matcher, and a specific compound assignment operator.
Matchers.compoundAssignment(Set<com.sun.source.tree.Tree.Kind> operators,
Matcher<com.sun.source.tree.ExpressionTree> receiverMatcher,
Matcher<com.sun.source.tree.ExpressionTree> expressionMatcher)
Matches a compound assignment operator AST node which matches a given left-operand matcher, a
given right-operand matcher, and is one of a set of compound assignment operators.