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

public abstract class AbstractAnalysisLauncher extends Object
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 PgStatement getStmt()
    • getSchemaName

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

      public List<PgObjLocation> 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

      public void updateStmt(AbstractDatabase db)
      Updates the saved statement to the twin found in the given db
      Parameters:
      db - database
    • launchAnalyze

      public Set<GenericColumn> launchAnalyze(List<Object> errors, MetaContainer meta)
      Launches the analysis of the statement.
      Parameters:
      errors - list to collect analysis errors
      meta - metadata container for dependency resolution
      Returns:
      set of dependencies found