Class PgFormatParseTreeListener
java.lang.Object
org.pgcodekeeper.core.formatter.FormatParseTreeListener
org.pgcodekeeper.core.formatter.pg.PgFormatParseTreeListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
PostgreSQL-specific parse tree listener for SQL code formatting.
Handles indentation and formatting rules for PostgreSQL syntax elements.
-
Constructor Summary
ConstructorsConstructorDescriptionPgFormatParseTreeListener(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 PostgreSQL format listener. -
Method Summary
Methods inherited from class org.pgcodekeeper.core.formatter.FormatParseTreeListener
enterEveryRule, visitErrorNode, visitTerminal
-
Constructor Details
-
PgFormatParseTreeListener
public PgFormatParseTreeListener(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 PostgreSQL format listener.- Parameters:
tokens- Token stream being processedindents- Map to store indentation informationunaryOps- Set of unary operators to track
-
-
Method Details
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
-