Class StringLiteral

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

public class StringLiteral
extends Object
implements Matcher<com.sun.source.tree.ExpressionTree>
Author:
eaftan@google.com (Eddie Aftandilian), pepstein@google.com (Peter Epstein)
See Also:
Serialized Form
  • Constructor Details

    • StringLiteral

      public StringLiteral​(String value)
    • StringLiteral

      public StringLiteral​(Pattern pattern)
  • Method Details

    • matches

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