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.MethodMatchers.
  • 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 in Matchers returning subtypes of MethodMatchers.MethodMatcher.