Class MethodVisibility

java.lang.Object
com.google.errorprone.matchers.MethodVisibility
All Implemented Interfaces:
Matcher<com.sun.source.tree.MethodTree>, Serializable

public class MethodVisibility extends Object implements Matcher<com.sun.source.tree.MethodTree>
A matcher for method visibility (public, private, protected, or default).
Author:
eaftan@google.com (Eddie Aftandilian)
See Also:
  • Constructor Details

  • Method Details

    • matches

      public boolean matches(com.sun.source.tree.MethodTree t, VisitorState state)
      Specified by:
      matches in interface Matcher<com.sun.source.tree.MethodTree>