Class HasArguments

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

public class HasArguments extends ChildMultiMatcher<com.sun.source.tree.MethodInvocationTree,com.sun.source.tree.ExpressionTree>
Matches if the given matcher matches all of/any of the parameters to this method.
Author:
eaftan@google.com (Eddie Aftandilian)
See Also:
  • Constructor Details

  • Method Details

    • getChildNodes

      protected Iterable<? extends com.sun.source.tree.ExpressionTree> getChildNodes(com.sun.source.tree.MethodInvocationTree methodInvocationTree, VisitorState state)
      Description copied from class: ChildMultiMatcher
      Returns the set of child nodes to match. The nodes must be immediate children of the current node to ensure the TreePath calculation is correct. MultiMatchers with other requirements should not subclass ChildMultiMatcher.
      Specified by:
      getChildNodes in class ChildMultiMatcher<com.sun.source.tree.MethodInvocationTree,com.sun.source.tree.ExpressionTree>