Class AbstractAnalysisLauncher
java.lang.Object
org.pgcodekeeper.core.database.base.parser.launcher.AbstractAnalysisLauncher
- All Implemented Interfaces:
IAnalysisLauncher
- Direct Known Subclasses:
ChExpressionAnalysisLauncher,ChFuncAnalysisLauncher,ChViewAnalysisLauncher,MsExpressionAnalysisLauncher,MsFuncProcTrigAnalysisLauncher,MsViewAnalysisLauncher,PgAbstractAnalysisLauncher,PgAggregateAnalysisLauncher,PgOperatorAnalysisLauncher,PgStatisticsAnalysisLauncher,PgViewAnalysisLauncher
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, IMetaContainer meta) Launches the analysis of the statement.voidsetOffset(org.antlr.v4.runtime.Token codeStart) voidupdateStmt(IDatabase db) Updates the saved statement to the twin found in the given db
-
Method Details
-
getStmt
- Specified by:
getStmtin interfaceIAnalysisLauncher
-
getSchemaName
Gets the schema name for the statement if available.- Specified by:
getSchemaNamein interfaceIAnalysisLauncher- Returns:
- schema name or null if not applicable
-
getReferences
Gets the list of object references founded during analysis.- Specified by:
getReferencesin interfaceIAnalysisLauncher- 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- Specified by:
updateStmtin interfaceIAnalysisLauncher- Parameters:
db- database
-
launchAnalyze
Launches the analysis of the statement.- Specified by:
launchAnalyzein interfaceIAnalysisLauncher- Parameters:
errors- list to collect analysis errorsmeta- metadata container for dependency resolution- Returns:
- set of dependencies found
-