Class Antlr4ErrorLog

java.lang.Object
org.antlr.mojo.antlr4.Antlr4ErrorLog
All Implemented Interfaces:
ANTLRToolListener

public class Antlr4ErrorLog extends Object implements ANTLRToolListener
This implementation of ANTLRToolListener reports messages to the Log instance provided by Maven.
Author:
Sam Harwell
  • Constructor Details

    • Antlr4ErrorLog

      public Antlr4ErrorLog(Tool tool, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.plugin.logging.Log log)
      Creates an instance of Antlr4ErrorLog.
      Parameters:
      log - The Maven log
  • Method Details

    • info

      public void info(String message)

      This implementation passes the message to the Maven log.

      Specified by:
      info in interface ANTLRToolListener
      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:
      error in interface ANTLRToolListener
      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:
      warning in interface ANTLRToolListener
      Parameters:
      message -