Class AntlrParser

java.lang.Object
org.pgcodekeeper.core.database.base.parser.AntlrParser

public final class AntlrParser extends Object
Utility class for creating and managing ANTLR parser
  • Field Details

  • Method Details

    • createIgnoreListParser

      public static IgnoreListParser createIgnoreListParser(Path listFile) throws IOException
      Creates a parser for ignore list files.
      Parameters:
      listFile - path to the ignore list file
      Returns:
      configured IgnoreListParser instance
      Throws:
      IOException - if there's an error reading the file
    • addErrorListener

      public static void addErrorListener(org.antlr.v4.runtime.Lexer lexer, org.antlr.v4.runtime.Parser parser, String parsedObjectName, List<Object> errors, int offset, int lineOffset, int inLineOffset)