Class AbstractAnalysisLauncher
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.base.launcher.AbstractAnalysisLauncher
- Direct Known Subclasses:
AbstractPgAnalysisLauncher,AggregateAnalysisLauncher,ChExpressionAnalysisLauncher,ChFuncAnalysisLauncher,ChViewAnalysisLauncher,MsExpressionAnalysisLauncher,MsFuncProcTrigAnalysisLauncher,MsViewAnalysisLauncher,OperatorAnalysisLauncher,StatisticsAnalysisLauncher,ViewAnalysisLauncher
This class and all child classes contains statement, its contexts and
implementation of logic for launch the analysis of statement's contexts.
-
Method Summary
Modifier and TypeMethodDescriptionGets the list of object references founded during analysis.Gets the schema name for the statement if available.getStmt()launchAnalyze(List<Object> errors, MetaContainer meta) Launches the analysis of the statement.voidsetOffset(org.antlr.v4.runtime.Token codeStart) voidUpdates the saved statement to the twin found in the given db
-
Method Details
-
getStmt
-
getSchemaName
Gets the schema name for the statement if available.- Returns:
- schema name or null if not applicable
-
getReferences
Gets the list of object references founded during analysis.- Returns:
- unmodifiable list of references
-
setOffset
public void setOffset(org.antlr.v4.runtime.Token codeStart) -
updateStmt
Updates the saved statement to the twin found in the given db- Parameters:
db- database
-
launchAnalyze
Launches the analysis of the statement.- Parameters:
errors- list to collect analysis errorsmeta- metadata container for dependency resolution- Returns:
- set of dependencies found
-