Class Antlr4ErrorLog

  • All Implemented Interfaces:
    org.antlr.v4.tool.ANTLRToolListener

    public class Antlr4ErrorLog
    extends java.lang.Object
    implements org.antlr.v4.tool.ANTLRToolListener
    This implementation of ANTLRToolListener reports messages to the Log instance provided by Maven.
    Author:
    Sam Harwell
    • Constructor Summary

      Constructors 
      Constructor Description
      Antlr4ErrorLog​(org.antlr.v4.Tool tool, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.plugin.logging.Log log)
      Creates an instance of Antlr4ErrorLog.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(org.antlr.v4.tool.ANTLRMessage message)
      void info​(java.lang.String message)
      void warning​(org.antlr.v4.tool.ANTLRMessage message)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Antlr4ErrorLog

        public Antlr4ErrorLog​(org.antlr.v4.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 Detail

      • info

        public void info​(java.lang.String message)

        This implementation passes the message to the Maven log.

        Specified by:
        info in interface org.antlr.v4.tool.ANTLRToolListener
        Parameters:
        message - The message to send to Maven
      • error

        public void error​(org.antlr.v4.tool.ANTLRMessage message)

        This implementation passes the message to the Maven log.

        Specified by:
        error in interface org.antlr.v4.tool.ANTLRToolListener
        Parameters:
        message - The message to send to Maven.
      • warning

        public void warning​(org.antlr.v4.tool.ANTLRMessage message)

        This implementation passes the message to the Maven log.

        Specified by:
        warning in interface org.antlr.v4.tool.ANTLRToolListener
        Parameters:
        message -