Package org.antlr.mojo.antlr4
Class Antlr4ErrorLog
- java.lang.Object
-
- org.antlr.mojo.antlr4.Antlr4ErrorLog
-
- All Implemented Interfaces:
ANTLRToolListener
public class Antlr4ErrorLog extends java.lang.Object implements ANTLRToolListener
This implementation ofANTLRToolListenerreports messages to theLoginstance provided by Maven.
-
-
Field Summary
Fields Modifier and Type Field Description private org.sonatype.plexus.build.incremental.BuildContextbuildContextprivate org.apache.maven.plugin.logging.Loglogprivate Tooltool
-
Constructor Summary
Constructors Constructor Description Antlr4ErrorLog(Tool tool, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.plugin.logging.Log log)Creates an instance ofAntlr4ErrorLog.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(ANTLRMessage message)voidinfo(java.lang.String message)voidwarning(ANTLRMessage message)
-
-
-
Field Detail
-
tool
private final Tool tool
-
buildContext
private final org.sonatype.plexus.build.incremental.BuildContext buildContext
-
log
private final org.apache.maven.plugin.logging.Log log
-
-
Constructor Detail
-
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 Detail
-
info
public void info(java.lang.String message)
This implementation passes the message to the Maven log.
- Specified by:
infoin interfaceANTLRToolListener- Parameters:
message- The message to send to Maven
-
error
public void error(ANTLRMessage message)
This implementation passes the message to the Maven log.
- Specified by:
errorin interfaceANTLRToolListener- Parameters:
message- The message to send to Maven.
-
warning
public void warning(ANTLRMessage message)
This implementation passes the message to the Maven log.
- Specified by:
warningin interfaceANTLRToolListener- Parameters:
message-
-
-