Class Asserts

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

public class Asserts
extends Object
implements Matcher<com.sun.source.tree.StatementTree>
Matches assert statements which have a condition expression matched by the given matcher.
See Also:
Serialized Form
  • Constructor Details

    • Asserts

      public Asserts​(Matcher<com.sun.source.tree.ExpressionTree> expressionMatcher)
  • Method Details

    • matches

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