Class NullnessMatcher

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

public class NullnessMatcher extends Object implements Matcher<com.sun.source.tree.ExpressionTree>
Matches an expression based on the result of the nullness dataflow analysis.
See Also:
  • Constructor Details

    • NullnessMatcher

      public NullnessMatcher(Nullness expectedNullnessValue)
  • Method Details

    • matches

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