Package org.antlr.mojo.antlr4
Class Antlr4ErrorLog
java.lang.Object
org.antlr.mojo.antlr4.Antlr4ErrorLog
- All Implemented Interfaces:
ANTLRToolListener
This implementation of
ANTLRToolListener
reports messages to the
Log
instance provided by Maven.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.sonatype.plexus.build.incremental.BuildContext
private final org.apache.maven.plugin.logging.Log
private final Tool
-
Constructor Summary
ConstructorsConstructorDescriptionAntlr4ErrorLog
(Tool tool, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.plugin.logging.Log log) Creates an instance ofAntlr4ErrorLog
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(ANTLRMessage message) void
void
warning
(ANTLRMessage message)
-
Field Details
-
tool
-
buildContext
private final org.sonatype.plexus.build.incremental.BuildContext buildContext -
log
private final org.apache.maven.plugin.logging.Log log
-
-
Constructor Details
-
Antlr4ErrorLog
public Antlr4ErrorLog(Tool tool, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.plugin.logging.Log log) Creates an instance ofAntlr4ErrorLog
.- Parameters:
log
- The Maven log
-
-
Method Details
-
info
This implementation passes the message to the Maven log.
- Specified by:
info
in interfaceANTLRToolListener
- Parameters:
message
- The message to send to Maven
-
error
This implementation passes the message to the Maven log.
- Specified by:
error
in interfaceANTLRToolListener
- Parameters:
message
- The message to send to Maven.
-
warning
This implementation passes the message to the Maven log.
- Specified by:
warning
in interfaceANTLRToolListener
- Parameters:
message
-
-