Class MethodInvocation
java.lang.Object
com.google.errorprone.matchers.MethodInvocation
- All Implemented Interfaces:
Matcher<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
ConstructorsConstructorDescriptionMethodInvocation
(Matcher<ExpressionTree> methodSelectMatcher, ChildMultiMatcher.MatchType matchType, Matcher<ExpressionTree> methodArgumentMatcher) Creates a new matcher for method invocations based on a method select and an argument matcher. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(ExpressionTree expressionTree, VisitorState state)
-
Constructor Details
-
MethodInvocation
public MethodInvocation(Matcher<ExpressionTree> methodSelectMatcher, ChildMultiMatcher.MatchType matchType, Matcher<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
-
matches
- Specified by:
matches
in interfaceMatcher<ExpressionTree>
-