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

public abstract class AbstractAnalysisLauncher extends Object implements IAnalysisLauncher
This class and all child classes contains statement, its contexts and implementation of logic for launch the analysis of statement's contexts.
  • Method Details

    • getStmt

      public IStatement getStmt()
      Specified by:
      getStmt in interface IAnalysisLauncher
    • getSchemaName

      public String getSchemaName()
      Gets the schema name for the statement if available.
      Specified by:
      getSchemaName in interface IAnalysisLauncher
      Returns:
      schema name or null if not applicable
    • getReferences

      public List<ObjectLocation> getReferences()
      Gets the list of object references founded during analysis.
      Specified by:
      getReferences in interface IAnalysisLauncher
      Returns:
      unmodifiable list of references
    • setOffset

      public void setOffset(org.antlr.v4.runtime.Token codeStart)
    • updateStmt

      public void updateStmt(IDatabase db)
      Updates the saved statement to the twin found in the given db
      Specified by:
      updateStmt in interface IAnalysisLauncher
      Parameters:
      db - database
    • launchAnalyze

      public Set<ObjectReference> launchAnalyze(List<Object> errors, IMetaContainer meta)
      Launches the analysis of the statement.
      Specified by:
      launchAnalyze in interface IAnalysisLauncher
      Parameters:
      errors - list to collect analysis errors
      meta - metadata container for dependency resolution
      Returns:
      set of dependencies found