Class FieldMatchers

java.lang.Object
com.google.errorprone.matchers.FieldMatchers

public final class FieldMatchers extends Object
Static utility methods for creating Matchers for detecting references to fields.
  • Method Details

    • anyFieldInClass

      public static Matcher<com.sun.source.tree.ExpressionTree> anyFieldInClass(String className)
    • staticField

      public static Matcher<com.sun.source.tree.ExpressionTree> staticField(String className, String fieldName)
    • instanceField

      public static Matcher<com.sun.source.tree.ExpressionTree> instanceField(String className, String fieldName)