public abstract class RegexpLineParser extends RegexpParser
ANT_TASK, FALSE_POSITIVEDEPRECATION, PROPRIETARY_API| Modifier | Constructor and Description |
|---|---|
protected |
RegexpLineParser(String warningPattern)
Creates a new instance of
RegexpLineParser. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentLine()
Returns the number of the current line in the parsed file.
|
Report |
parse(Reader reader,
Function<String,String> preProcessor)
Parses the specified input stream for issues.
|
protected Report |
postProcess(Report report)
Post processes the issues.
|
createIssue, findIssuesgetFileName, guessCategory, guessCategoryIfEmpty, parse, parse, parseIntaccepts, isXmlFile, parseprotected RegexpLineParser(String warningPattern)
RegexpLineParser.warningPattern - pattern of compiler warnings.public Report parse(Reader reader, Function<String,String> preProcessor) throws ParsingCanceledException, ParsingException
AbstractParserparse in class AbstractParserreader - the reader to get the text frompreProcessor - pre processes each input line before handing it to the actual parserParsingCanceledException - Signals that the parsing has been aborted by the userParsingException - Signals that during parsing a non recoverable error has been occurredprotected Report postProcess(Report report)
report - the issues after the parsing processpublic int getCurrentLine()
Copyright © 2018. All rights reserved.