Package edu.hm.hafner.analysis.parser
Class NagFortranParser
- java.lang.Object
-
- edu.hm.hafner.analysis.IssueParser
-
- edu.hm.hafner.analysis.LookaheadParser
-
- edu.hm.hafner.analysis.parser.NagFortranParser
-
- All Implemented Interfaces:
Serializable
public class NagFortranParser extends LookaheadParser
A parser for messages from the NAG Fortran Compiler.- Author:
- Mat Cross.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.hm.hafner.analysis.LookaheadParser
ANT_TASK
-
-
Constructor Summary
Constructors Constructor Description NagFortranParser()Creates a new instance ofNagFortranParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Optional<Issue>createIssue(Matcher matcher, edu.hm.hafner.util.LookaheadStream lookahead, IssueBuilder builder)Creates a new issue for the specified pattern.-
Methods inherited from class edu.hm.hafner.analysis.LookaheadParser
isLineInteresting, parse, postProcess
-
Methods inherited from class edu.hm.hafner.analysis.IssueParser
accepts, equalsIgnoreCase, isXmlFile, parseFile
-
-
-
-
Constructor Detail
-
NagFortranParser
public NagFortranParser()
Creates a new instance ofNagFortranParser.
-
-
Method Detail
-
createIssue
protected Optional<Issue> createIssue(Matcher matcher, edu.hm.hafner.util.LookaheadStream lookahead, IssueBuilder builder) throws ParsingException
Description copied from class:LookaheadParserCreates 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 returnOptional.empty()to ignore this warning.- Specified by:
createIssuein classLookaheadParser- Parameters:
matcher- the regular expression matcherlookahead- the lookahead stream to read additional linesbuilder- the issue builder to use- Returns:
- a new annotation for the specified pattern
- Throws:
ParsingException- Signals that during parsing a non recoverable error has been occurred
-
-