|Constructor and Description|
Creates a new compound-assignment operator matcher, which matches a compound assignment expression with one of a set of operators and whose receiver and expression match the given matchers.
|Modifier and Type||Method and Description|
public CompoundAssignment(Set<com.sun.source.tree.Tree.Kind> operators, Matcher<com.sun.source.tree.ExpressionTree> receiverMatcher, Matcher<com.sun.source.tree.ExpressionTree> expressionMatcher)
operators- The set of matching compound-assignment operators. These are drawn from the
Tree.Kindenum values which link to
CompoundAssignmentTreein their javadoc.
receiverMatcher- The matcher which must match the receiver which will be assigned to.
expressionMatcher- The matcher which must match the right-hand expression to the compound assignment.
Copyright © 2018. All rights reserved.