Class ChFormatParseTreeListener

java.lang.Object
org.pgcodekeeper.core.database.base.formatter.FormatParseTreeListener
org.pgcodekeeper.core.database.ch.formatter.ChFormatParseTreeListener
All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener

public class ChFormatParseTreeListener extends FormatParseTreeListener
ClickHouse-specific parse tree listener for SQL code formatting. Handles indentation and formatting rules for ClickHouse SQL syntax.
  • Constructor Details

    • ChFormatParseTreeListener

      public ChFormatParseTreeListener(org.antlr.v4.runtime.CommonTokenStream tokens, Map<org.antlr.v4.runtime.Token,Pair<IndentDirection,Integer>> indents, Set<org.antlr.v4.runtime.Token> unaryOps)
      Constructs a new ClickHouse format listener.
      Parameters:
      tokens - The token stream being processed
      indents - Map to store indentation information for tokens
      unaryOps - Set to track unary operators in the SQL
  • Method Details

    • exitEveryRule

      public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)