Class HasArguments
java.lang.Object
com.google.errorprone.matchers.ChildMultiMatcher<MethodInvocationTree, ExpressionTree>
com.google.errorprone.matchers.HasArguments
- All Implemented Interfaces:
Matcher<MethodInvocationTree>, MultiMatcher<MethodInvocationTree, ExpressionTree>, Serializable
Matches if the given matcher matches all of/any of the parameters to this method.
- Author:
- eaftan@google.com (Eddie Aftandilian)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ChildMultiMatcher
ChildMultiMatcher.MatchType
Nested classes/interfaces inherited from interface MultiMatcher
MultiMatcher.MultiMatchResult<N>
-
Field Summary
Fields inherited from class ChildMultiMatcher
nodeMatcher
-
Constructor Summary
ConstructorsConstructorDescriptionHasArguments
(ChildMultiMatcher.MatchType matchType, Matcher<ExpressionTree> nodeMatcher) -
Method Summary
Modifier and TypeMethodDescriptionprotected Iterable
<? extends ExpressionTree> getChildNodes
(MethodInvocationTree methodInvocationTree, VisitorState state) Returns the set of child nodes to match.Methods inherited from class ChildMultiMatcher
matches, multiMatchResult
-
Constructor Details
-
HasArguments
-
-
Method Details
-
getChildNodes
protected Iterable<? extends ExpressionTree> getChildNodes(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 classChildMultiMatcher<MethodInvocationTree, ExpressionTree>
-