Class IsNonNullMatcher

All Implemented Interfaces:
Matcher<com.sun.source.tree.ExpressionTree>, Serializable

public final class IsNonNullMatcher
extends Object
implements Matcher<com.sun.source.tree.ExpressionTree>
Matches expressions that can be statically determined to be non-null. The matcher should have few if any false positives but has many, many false negatives.
See Also:
Serialized Form
  • Constructor Details

    • IsNonNullMatcher

      public IsNonNullMatcher()
  • Method Details

    • matches

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