Class ChFormatParseTreeListener
java.lang.Object
org.pgcodekeeper.core.formatter.FormatParseTreeListener
org.pgcodekeeper.core.formatter.ch.ChFormatParseTreeListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
ClickHouse-specific parse tree listener for SQL code formatting.
Handles indentation and formatting rules for ClickHouse SQL syntax.
-
Constructor Summary
ConstructorsConstructorDescriptionChFormatParseTreeListener(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. -
Method Summary
Methods inherited from class org.pgcodekeeper.core.formatter.FormatParseTreeListener
enterEveryRule, visitErrorNode, visitTerminal
-
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 processedindents- Map to store indentation information for tokensunaryOps- Set to track unary operators in the SQL
-
-
Method Details
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
-