Package com.google.errorprone.matchers
Class MethodInvocation
java.lang.Object
com.google.errorprone.matchers.MethodInvocation
- All Implemented Interfaces:
Matcher<com.sun.source.tree.ExpressionTree>
,Serializable
Matches a method invocation based on a matcher for the method select (receiver + method
identifier) and one for the arguments.
- Author:
- schmitt@google.com (Peter Schmitt)
- See Also:
-
Constructor Summary
ConstructorDescriptionMethodInvocation
(Matcher<com.sun.source.tree.ExpressionTree> methodSelectMatcher, ChildMultiMatcher.MatchType matchType, Matcher<com.sun.source.tree.ExpressionTree> methodArgumentMatcher) Creates a new matcher for method invocations based on a method select and an argument matcher. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(com.sun.source.tree.ExpressionTree expressionTree, VisitorState state)
-
Constructor Details
-
MethodInvocation
public MethodInvocation(Matcher<com.sun.source.tree.ExpressionTree> methodSelectMatcher, ChildMultiMatcher.MatchType matchType, Matcher<com.sun.source.tree.ExpressionTree> methodArgumentMatcher) Creates a new matcher for method invocations based on a method select and an argument matcher.- Parameters:
matchType
- how to apply the argument matcher to the method's arguments
-
-
Method Details