Klasse EclipseMavenParser

Alle implementierten Schnittstellen:
Serializable

public class EclipseMavenParser extends LookaheadParser
A parser for Eclipse compiler warnings.
Autor:
Ullrich Hafner, Jason Faust
Siehe auch:
  • Konstruktordetails

    • EclipseMavenParser

      public EclipseMavenParser()
      Creates a new instance of EclipseMavenParser.
  • Methodendetails

    • accepts

      public boolean accepts(ReaderFactory readerFactory)
      Beschreibung aus Klasse kopiert: IssueParser
      Returns whether this parser accepts the specified file as valid input. Parsers may reject a file if it is in the wrong format to avoid exceptions during parsing.
      Setzt außer Kraft:
      accepts in Klasse IssueParser
      Parameter:
      readerFactory - provides a reader to the reports
      Gibt zurück:
      true if this parser accepts this file as valid input, or false if the file could not be parsed by this parser
    • isLineInteresting

      protected boolean isLineInteresting(String line)
      Beschreibung aus Klasse kopiert: LookaheadParser
      Returns whether the specified line is interesting. Each interesting line will be matched by the defined regular expression. Here a parser can implement some fast checks (i.e. string or character comparisons) in order to see if a required condition is met. This default implementation does always return true.
      Setzt außer Kraft:
      isLineInteresting in Klasse LookaheadParser
      Parameter:
      line - the line to inspect
      Gibt zurück:
      true if the line should be handed over to the regular expression scanner, false if the line does not contain a warning.
    • createIssue

      protected Optional<Issue> createIssue(Matcher matcher, edu.hm.hafner.util.LookaheadStream lookahead, IssueBuilder builder)
      Beschreibung aus Klasse kopiert: LookaheadParser
      Creates a new issue for the specified pattern. This method is called for each matching line in the specified file. If a match is a false positive, then return Optional.empty() to ignore this warning.
      Angegeben von:
      createIssue in Klasse LookaheadParser
      Parameter:
      matcher - the regular expression matcher
      lookahead - the lookahead stream to read additional lines
      builder - the issue builder to use
      Gibt zurück:
      a new annotation for the specified pattern