public class ViolationParser extends Object
| Constructor and Description |
|---|
ViolationParser(Consumer<Violation> violationConsumer)
Creates a new parser.
|
ViolationParser(InternalTypeLineParser internalTypeLineParser,
Consumer<Violation> violationConsumer)
Creates a new parser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Informs the parser that parsing is done (for now).
|
void |
parseLine(String line)
Parses the specified line.
|
public ViolationParser(InternalTypeLineParser internalTypeLineParser, Consumer<Violation> violationConsumer)
public void parseLine(String line)
As soon as a new Violation is created it is handed to the Consumer specified during construction.
line - the line to parsepublic void finish()
If a violation is currently being created, calling this method will build it.
This documentation is licensed under CC-BY 4.0, attributed to Nicolai Parlog from CodeFX.