Class VerificationParserListener
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.pg.verification.VerificationParserListener
- All Implemented Interfaces:
AntlrContextProcessor<SQLParser.SqlContext>,SqlContextProcessor
Parser listener for SQL verification processes.
Processes SQL contexts to identify and verify various statement types
including functions and GRANT statements according to configured rules.
-
Constructor Summary
ConstructorsConstructorDescriptionVerificationParserListener(VerificationProperties rules, String fileName, List<Object> errors) Creates a new verification parser listener. -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(SQLParser.SqlContext rootCtx, org.antlr.v4.runtime.CommonTokenStream stream) Processes the ANTLR parser rule context with the given token stream
-
Constructor Details
-
VerificationParserListener
public VerificationParserListener(VerificationProperties rules, String fileName, List<Object> errors) Creates a new verification parser listener.- Parameters:
rules- verification rules and properties to applyfileName- the name of the file being verifiederrors- list to collect verification errors
-
-
Method Details
-
process
Description copied from interface:AntlrContextProcessorProcesses the ANTLR parser rule context with the given token stream- Specified by:
processin interfaceAntlrContextProcessor<SQLParser.SqlContext>- Parameters:
rootCtx- the root parser rule context to processstream- the token stream associated with the context
-