Class MethodInvocationMatcher
java.lang.Object
com.google.errorprone.matchers.method.MethodInvocationMatcher
public class MethodInvocationMatcher extends Object
The machinery and type definitions necessary to model and compile a single efficient matcher out
of a list of
MethodMatchers.MethodMatcher
s.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MethodInvocationMatcher.MethodKind
The kinds of things that count as a method invocation.static class
MethodInvocationMatcher.Rule
A rule describing a set of constraints for a method invocation.static interface
MethodInvocationMatcher.Token
A specific value for a property that a method invocation can have.static class
MethodInvocationMatcher.TokenType
The kinds of properties a matcher can match against. -
Method Summary
Modifier and Type Method Description static Matcher<com.sun.source.tree.ExpressionTree>
compile(Iterable<MethodInvocationMatcher.Rule> rules)
Constructs a Matcher that matches for method invocations (including constructor invocations) satisfying at least one of the given Rule specifications.
-
Method Details
-
compile
public static Matcher<com.sun.source.tree.ExpressionTree> compile(Iterable<MethodInvocationMatcher.Rule> rules)Constructs a Matcher that matches for method invocations (including constructor invocations) satisfying at least one of the given Rule specifications. For an easy way to create such Rules, see the factories inMatchers
returning subtypes ofMethodMatchers.MethodMatcher
.
-