Class Description

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

public class Description
extends Object
Simple data object containing the information captured about an AST match. Can be printed in a UI, or output in structured format for use by tools.
Author:
alexeagle@google.com (Alex Eagle)
  • Field Details

    • NO_MATCH

      public static final Description NO_MATCH
      Describes the sentinel value of the case where the match failed.
    • position

      public final com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition position
      The position of the match.
    • checkName

      public final String checkName
      The name of the check that produced the match.
    • fixes

      public final List<Fix> fixes
      A list of fixes to suggest in an error message or use in automated refactoring. Fixes are in order of decreasing preference, from most preferred to least preferred.
    • severity

      public final BugPattern.SeverityLevel severity
      Is this a warning, error, etc.?
  • Method Details