Class MethodInvocationMatcher
java.lang.Object
com.google.errorprone.matchers.method.MethodInvocationMatcher
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
Modifier and TypeClassDescriptionstatic enum
The kinds of things that count as a method invocation.static class
A rule describing a set of constraints for a method invocation.static interface
A specific value for a property that a method invocation can have.static enum
The kinds of properties a matcher can match against. -
Method Summary
Modifier and TypeMethodDescriptionstatic Matcher
<com.sun.source.tree.ExpressionTree> 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
.
-