Class ChAbstractExprWithNmspc<T>

java.lang.Object
org.pgcodekeeper.core.parsers.antlr.ch.expr.ChAbstractExpr
org.pgcodekeeper.core.parsers.antlr.ch.expr.ChAbstractExprWithNmspc<T>
Direct Known Subclasses:
ChExprWithNmspc, ChSelect

public abstract class ChAbstractExprWithNmspc<T> extends ChAbstractExpr
Abstract class extending ChAbstractExpr with namespace support for SQL expression analysis. Handles table aliases, CTEs (Common Table Expressions) and namespace management.
  • Method Details

    • addReference

      public void addReference(String alias)
      Adds a reference with the given alias
      Parameters:
      alias - the alias name to register
    • addRawTableReference

      public void addRawTableReference(GenericColumn qualifiedTable)
      Adds an unaliased table reference to the namespace.
      Parameters:
      qualifiedTable - the table reference to add
    • analyze

      public abstract List<String> analyze(T ruleCtx)
      Analyzes the given SQL context and returns a list of processing results. Must be implemented by concrete subclasses.
      Parameters:
      ruleCtx - the ANTLR context to analyze
      Returns:
      list of analysis results (implementation-dependent)