Class MethodInvocationArgument

java.lang.Object
com.google.errorprone.matchers.MethodInvocationArgument
All Implemented Interfaces:
Matcher<com.sun.source.tree.MethodInvocationTree>, Serializable

public class MethodInvocationArgument
extends Object
implements Matcher<com.sun.source.tree.MethodInvocationTree>
Applies an Expression matcher to an argument of a MethodInvocation by position.
Author:
alexeagle@google.com (Alex Eagle)
See Also:
Serialized Form
  • Constructor Details

    • MethodInvocationArgument

      public MethodInvocationArgument​(int position, Matcher<com.sun.source.tree.ExpressionTree> argumentMatcher)
  • Method Details

    • matches

      public boolean matches​(com.sun.source.tree.MethodInvocationTree methodInvocationTree, VisitorState state)
      Specified by:
      matches in interface Matcher<com.sun.source.tree.MethodInvocationTree>