Class PgSpaceListener
java.lang.Object
org.pgcodekeeper.core.database.base.formatter.FormatParseTreeListener
org.pgcodekeeper.core.database.pg.formatter.PgSpaceListener
- 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
ConstructorsConstructorDescriptionPgSpaceListener(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.database.base.formatter.FormatParseTreeListener
enterEveryRule, visitErrorNode, visitTerminal
-
Constructor Details
-
PgSpaceListener
public PgSpaceListener(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)
-